Skip to content

Commit

Permalink
Merge pull request #3380 from madprgmr/master
Browse files Browse the repository at this point in the history
Rudimentary fix for #3379.
  • Loading branch information
michaelficarra committed Feb 17, 2014
2 parents a216f93 + a323160 commit c41a14f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/coffee-script/lexer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/lexer.coffee
Expand Up @@ -187,7 +187,7 @@ exports.Lexer = class Lexer
# are balanced within the string's contents, and within nested interpolations.
stringToken: ->
switch quote = @chunk.charAt 0
when "'" then [string] = SIMPLESTR.exec @chunk
when "'" then [string] = SIMPLESTR.exec(@chunk) || []
when '"' then string = @balancedString @chunk, '"'
return 0 unless string
trimmed = @removeNewlines string[1...-1]
Expand Down

0 comments on commit c41a14f

Please sign in to comment.