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.
1 parent 552c00c commit eb1b80aCopy full SHA for eb1b80a
Extractor/ExposedRoutesExtractor.php
@@ -87,7 +87,7 @@ public function getRoutes()
87
continue;
88
}
89
90
- preg_match('#' . $this->pattern . '#', $name, $matches);
+ preg_match('#^' . $this->pattern . '$#', $name, $matches);
91
92
if (count($matches) === 0) {
93
@@ -197,7 +197,7 @@ public function getResources()
197
public function isRouteExposed(Route $route, $name)
198
{
199
return true === $route->hasOption('expose') ||
200
- ('' !== $this->pattern && preg_match('#' . $this->pattern . '#', $name));
+ ('' !== $this->pattern && preg_match('#^' . $this->pattern . '$#', $name));
201
202
203
protected function getDomainByRouteMatches($matches, $name)
0 commit comments