Skip to content
Snippets Groups Projects
Commit d682ed98 authored by Caleb Maclennan's avatar Caleb Maclennan
Browse files

fix(util): Avoid crashing when splitting malformed shebang lines

parent 8a87fda1
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ def script_type(fileobj):
return None
if not firstline:
return None
script = re.compile(r"#!.*/(.*)")
script = re.compile(r"#!.*/(.+)")
m = script.match(firstline)
if m is None:
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment