Skip to content

Commit

Permalink
Merge pull request lovesegfault#26 from oliverhulett/oliver/support-h…
Browse files Browse the repository at this point in the history
…ere-strings

Here strings not just after loops
  • Loading branch information
lovesegfault authored Aug 16, 2018
2 parents 991569c + 8362d56 commit 634530f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beautysh/beautysh.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def beautify_string(self, data, path=''):
re.search(r'<<', test_record)):
in_here_doc = False
else: # not in here doc
if(re.search(r'<<-?', test_record)) and not (re.search(r'done.*<<<', test_record)):
if(re.search(r'<<-?', test_record)) and not (re.search(r'.*<<<', test_record)):
here_string = re.sub(
r'.*<<-?\s*[\'|"]?([_|\w]+)[\'|"]?.*', r'\1',
stripped_record, 1)
Expand Down

0 comments on commit 634530f

Please sign in to comment.