Skip to content

Commit

Permalink
Fix multiple route params regex (#3186)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyrombo authored Jun 2, 2022
1 parent f35db30 commit caf78fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def is_route_decorator(decorator: ast.Call):
return isinstance(decorator.func, ast.Attribute) and decorator.func.attr == "route"


route_parser_regex = re.compile(".*<[^:]*:?(.*)>.*")
route_parser_regex = re.compile("<[^:]*:?([^>]*)>")


def is_route_decorator_documented(route_decorator: ast.Call):
Expand Down

0 comments on commit caf78fc

Please sign in to comment.