mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Fix namespace regexp not capturing group properly
Conory/Abc/Controllers/Config/Index → Group 2: Config/
This commit is contained in:
parent
2b55d8cc91
commit
0f0dbbb40c
1 changed files with 1 additions and 1 deletions
|
|
@ -1491,7 +1491,7 @@ class ModuleController extends Module
|
|||
if (count($regexp))
|
||||
{
|
||||
usort($regexp, function($a, $b) { return strlen($b) - strlen($a); });
|
||||
$namespaces['regexp'] = '!^(' . implode('|', $regexp) . ')/(\\w+/)*(\\w+)$!';
|
||||
$namespaces['regexp'] = '!^(' . implode('|', $regexp) . ')/((?:\\w+/)*)(\\w+)$!';
|
||||
}
|
||||
|
||||
// Update system configuration.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue