Skip to content

Commit

Permalink
Allow variable definition and export to be on different lines
Browse files Browse the repository at this point in the history
  • Loading branch information
BrentWilkins committed Sep 19, 2023
1 parent 7b5d7f9 commit 8c526cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion environ/environ.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ def _keep_escaped_format_characters(match):
return escaped_char

for line in content.splitlines():
m1 = re.match(r'\A(?:export )?([A-Za-z_0-9]+)=(.*)\Z', line)
m1 = re.match(r'\A(?:export )?([A-Za-z_0-9]+)(?:=)?(.*)\Z', line)
if m1:
key, val = m1.group(1), m1.group(2)
# Look for value in quotes, ignore post-# comments
Expand Down

0 comments on commit 8c526cc

Please sign in to comment.