We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0499357 + 86708c1 commit 0cbe10aCopy full SHA for 0cbe10a
ModuleJson.php
@@ -40,7 +40,7 @@ public function find(array $route) {
40
41
private function getRouteDir($moduleName) {
42
$files = glob($this->moduleDir . '/*');
43
- $match = preg_grep('/' . $this->moduleDir . '\/' . $moduleName . '/i', $files);
+ $match = preg_grep('/^' . $this->moduleDir . '\/' . $moduleName . '$/i', $files);
44
return array_values($match)[0] ?? false;
45
}
46
0 commit comments