Skip to content

Commit f56e921

Browse files
committed
fix: match only alpha characters
1 parent 8736f5d commit f56e921

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?://.*|\S:\\.*)")
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)