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 and piazzatron committed Jun 2, 2022
1 parent ad1ab64 commit 810edbc
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 810edbc

Please sign in to comment.