Skip to content

Commit 4259eca

Browse files
authored
Merge pull request #74 from cmhulbert/fix/endpointsOnWindows
fix: don't include paths starting with Windows drive letters as endpoints
2 parents ee2ec74 + f56e921 commit 4259eca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jgo/jgo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def run_and_combine_outputs(command, *args):
265265

266266
def find_endpoint(argv, shortcuts={}):
267267
# endpoint is first positional argument
268-
pattern = re.compile(".*https?://.*")
268+
pattern = re.compile("(.*https?://.*|[a-zA-Z]:\\.*)")
269269
indices = []
270270
for index, arg in enumerate(argv):
271271
if arg in shortcuts or (Endpoint.is_endpoint(arg) and not pattern.match(arg)):

0 commit comments

Comments
 (0)