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 b43c829
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jgo/jgo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import argparse
echo "TEST"
import configparser
import glob
import logging
Expand Down Expand Up @@ -265,7 +266,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 b43c829

Please sign in to comment.