Browse code

'-' in eventHandler arguments

RafaƂ Szklarczyk authored on 12/07/2019 14:51:43
Showing 1 changed files
... ...
@@ -60,7 +60,7 @@ class RouteInfo{
60 60
     }
61 61
 
62 62
     public static function eventHandlerFormatCheck($event_handler, &$match){
63
-        $pattern = '#^((?<class>[a-z0-9\\\\]+)::)?(?<function>[a-z0-9]+)(\\((?<arguments>[a-z0-9;, ]+)?\\))?$#i';
63
+        $pattern = '#^((?<class>[a-z0-9\\\\]+)::)?(?<function>[a-z0-9]+)(\\((?<arguments>[a-z0-9;,- ]+)?\\))?$#i';
64 64
         if(preg_match($pattern, $event_handler, $match)){
65 65
             if(isset($match['arguments'])){
66 66
                 $result = self::eventHandlerArgumentsFormatCheck($match['arguments'],$arguments_match);