mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 03:52:15 +09:00
Reorganize type shortcuts
This commit is contained in:
parent
1f11dbe41f
commit
7ac27fffce
1 changed files with 2 additions and 3 deletions
|
|
@ -11,11 +11,10 @@ class ModuleActionParser
|
||||||
* Shortcuts for route definition.
|
* Shortcuts for route definition.
|
||||||
*/
|
*/
|
||||||
protected static $_shortcuts = array(
|
protected static $_shortcuts = array(
|
||||||
'int' => '[1-9][0-9]*',
|
'int' => '[0-9]+',
|
||||||
'float' => '[0-9]+(?:\.[0-9]+)?',
|
'float' => '[0-9]+(?:\.[0-9]+)?',
|
||||||
'number' => '[0-9]+',
|
|
||||||
'alpha' => '[a-zA-Z]+',
|
'alpha' => '[a-zA-Z]+',
|
||||||
'alphanum' => '[a-zA-Z0-9]+',
|
'alnum' => '[a-zA-Z0-9]+',
|
||||||
'hex' => '[0-9a-f]+',
|
'hex' => '[0-9a-f]+',
|
||||||
'word' => '[a-zA-Z0-9_]+',
|
'word' => '[a-zA-Z0-9_]+',
|
||||||
'any' => '[^/]+',
|
'any' => '[^/]+',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue