Skip to content

Commit ceafc2f

Browse files
committed
Fix regex of route to ignore
1 parent 840dfc9 commit ceafc2f

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)