Reorganize type shortcuts

This commit is contained in:
Kijin Sung 2020-06-16 23:24:47 +09:00
parent 1f11dbe41f
commit 7ac27fffce

View file

@ -11,11 +11,10 @@ class ModuleActionParser
* Shortcuts for route definition.
*/
protected static $_shortcuts = array(
'int' => '[1-9][0-9]*',
'int' => '[0-9]+',
'float' => '[0-9]+(?:\.[0-9]+)?',
'number' => '[0-9]+',
'alpha' => '[a-zA-Z]+',
'alphanum' => '[a-zA-Z0-9]+',
'alnum' => '[a-zA-Z0-9]+',
'hex' => '[0-9a-f]+',
'word' => '[a-zA-Z0-9_]+',
'any' => '[^/]+',