Skip to content

Commit b43c829

Browse files
committed
fix: don't include paths starting with Windows drive letters as endpoints
1 parent 26920e8 commit b43c829

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jgo/jgo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import argparse
2+
echo "TEST"
23
import configparser
34
import glob
45
import logging
@@ -265,7 +266,7 @@ def run_and_combine_outputs(command, *args):
265266

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

0 commit comments

Comments
 (0)