From 7ac27fffce9a2657a9a1f6038610fc9a5f8a1e63 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 16 Jun 2020 23:24:47 +0900 Subject: [PATCH] Reorganize type shortcuts --- common/framework/parsers/moduleactionparser.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/framework/parsers/moduleactionparser.php b/common/framework/parsers/moduleactionparser.php index 4a3587333..e091ca1c0 100644 --- a/common/framework/parsers/moduleactionparser.php +++ b/common/framework/parsers/moduleactionparser.php @@ -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' => '[^/]+',