Skip to content

Commit

Permalink
relax shebang regex
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyfast committed Jun 28, 2023
1 parent 73212be commit 09e9f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/midgy/front_matter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from re import compile

__all__ = ("load",)
SHEBANG = compile("^#!(?P<interpreter>\S+)\s+(?P<command>\S*)")
SHEBANG = compile("^#!\s*(?P<interpreter>\S+)\s*(?P<command>.*)")


FM = Enum("FM", {"yaml": "-", "toml": "+"})
Expand Down

0 comments on commit 09e9f25

Please sign in to comment.