Skip to content

Commit

Permalink
fix: don't include paths starting with Windows drive letters as endpo…
Browse files Browse the repository at this point in the history
…ints
  • Loading branch information
cmhulbert committed Jul 15, 2022
1 parent 26920e8 commit 8736f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jgo/jgo.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def run_and_combine_outputs(command, *args):

def find_endpoint(argv, shortcuts={}):
# endpoint is first positional argument
pattern = re.compile(".*https?://.*")
pattern = re.compile("(.*https?://.*|\S:\\.*)")
indices = []
for index, arg in enumerate(argv):
if arg in shortcuts or (Endpoint.is_endpoint(arg) and not pattern.match(arg)):
Expand Down

0 comments on commit 8736f5d

Please sign in to comment.