Skip to content

Commit

Permalink
Fix syntax error for blank word
Browse files Browse the repository at this point in the history
  • Loading branch information
buty4649 committed Jan 16, 2021
1 parent ced3806 commit bb69d5c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -111,7 +111,7 @@ def percent_word

def read_quote_word(term)
t = Regexp.escape(term)
word = @line.slice!(/^.+?(?<!\\)#{t}/)
word = @line.slice!(/^.*?(?<!\\)#{t}/)
raise SyntaxError.new("unterminated string") unless word
word.delete_suffix!(term).gsub(/\\#{t}/, term)
end
Expand Down

0 comments on commit bb69d5c

Please sign in to comment.