Skip to content

Commit 6e91611

Browse files
committed
Add additional check to prevent false positive endpoints
1 parent fcaf307 commit 6e91611

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/jgo/jgo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def is_endpoint(string):
152152
len(endpoint_elements) < 2
153153
or len(endpoint_elements) > 5
154154
or endpoint_elements[0].startswith("-")
155+
or endpoint_elements[1].startswith("/")
155156
):
156157
return False
157158

0 commit comments

Comments
 (0)