Upstream nikic/FastRoute state of the touched files before e76ad24228
This commit is contained in:
1 parent
7ac8857878
commit
5861a25d71
6 files changed
+9
-62
No files matched your search
@@ -7,6 +7,7 @@ use FastRoute\Dispatcher\Result\Matched;
|
||||
|
||||
use function assert;
|
||||
use function end;
|
||||
use function preg_match;
|
||||
|
||||
/** @final */
|
||||
class CharCountBased extends RegexBasedAbstract
|
||||
@@ -17,7 +18,7 @@ class CharCountBased extends RegexBasedAbstract
|
||||
foreach ($routeData as $data) {
|
||||
assert(isset($data['suffix']));
|
||||
|
||||
if ($this->matchRoute($data['regex'], $uri . $data['suffix'], $matches) !== 1) {
|
||||
if (preg_match($data['regex'], $uri . $data['suffix'], $matches) !== 1) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user