Browse code

More characters for eventHandler...

RafaƂ Szklarczyk authored on 18/07/2019 22:58:29
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-zA-Z0-9]+)(\\((?<arguments>[a-zA-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);