Commit d0d24280 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes: #2033 Allowing dash in fai class names

parent 1a6d72da
......@@ -159,7 +159,7 @@ class askClassName extends plugin
$message= plugin::check();
/* Only allow limited set of characters as class name to avoid issues */
if (!preg_match('/^[A-Za-z0-9_]*$/', $this->ClassName)) {
if (!preg_match('/^[A-Za-z0-9_-]*$/', $this->ClassName)) {
$message[] = msgPool::invalid(_("Name"), $this->ClassName, "/[A-Za-z0-9_-]/");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment