Skip to content

Commit aa6895c

Browse files
committed
update regex
1 parent c4d21b9 commit aa6895c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Processors/RouteProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected function processRoute(Route $route)
8484
$routeHeaders[] = $this->authentication->toArray();
8585
}
8686

87-
$uri = Str::of($route->uri())->replaceMatches('/{([[:alnum:]]+)}/', ':$1');
87+
$uri = Str::of($route->uri())->replaceMatches('/{([[:alnum:]_]+)}/', ':$1');
8888

8989
if ($this->config['include_doc_comments']) {
9090
$description = (new DocBlockProcessor)($reflectionMethod);

0 commit comments

Comments
 (0)