mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Remove unnecessary 'i' modifier in variable regexp
This commit is contained in:
parent
4a5159b255
commit
522e3af8c1
1 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ class ModuleActionParser
|
||||||
public static function analyzeRoute(string $route)
|
public static function analyzeRoute(string $route)
|
||||||
{
|
{
|
||||||
// Replace variables in the route definition into appropriate regexp.
|
// Replace variables in the route definition into appropriate regexp.
|
||||||
$var_regexp = '#\\$([a-z0-9_]+)(?::(' . implode('|', array_keys(self::$_shortcuts)) . '))?#i';
|
$var_regexp = '#\\$([a-zA-Z0-9_]+)(?::(' . implode('|', array_keys(self::$_shortcuts)) . '))?#';
|
||||||
$vars = array();
|
$vars = array();
|
||||||
$regexp = preg_replace_callback($var_regexp, function($match) use(&$vars) {
|
$regexp = preg_replace_callback($var_regexp, function($match) use(&$vars) {
|
||||||
if (isset($match[2]) && isset(self::$_shortcuts[$match[2]]))
|
if (isset($match[2]) && isset(self::$_shortcuts[$match[2]]))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue