Skip to content

Commit 031a3a4

Browse files
authored
Merge pull request #5 from Tiime-Software/fix-regex
Fix regex of route to ignore
2 parents 840dfc9 + ceafc2f commit 031a3a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RoutesChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function getUntestedRoutes(array $routesToIgnore = []): array
3535
continue;
3636
}
3737
foreach ($routesToIgnore as $routeToIgnore) {
38-
if (@preg_match("#$routeToIgnore#", $untestedRoute)) {
38+
if (@preg_match("#\b$routeToIgnore\b#", $untestedRoute)) {
3939
continue 2;
4040
}
4141
}

0 commit comments

Comments
 (0)