Skip to content

Commit

Permalink
Add additional check to prevent false positive endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
hanslovsky committed Mar 2, 2023
1 parent fcaf307 commit 6e91611
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jgo/jgo.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def is_endpoint(string):
len(endpoint_elements) < 2
or len(endpoint_elements) > 5
or endpoint_elements[0].startswith("-")
or endpoint_elements[1].startswith("/")
):
return False

Expand Down

0 comments on commit 6e91611

Please sign in to comment.