Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 71c59dd

Browse files
committed
Fix getting of character at index
1 parent 8f5c77c commit 71c59dd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/coffee-script/lexer.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lexer.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ exports.Lexer = class Lexer
204204
{tokens, index: end} = @matchWithInterpolations regex, quote
205205
$ = tokens.length - 1
206206

207-
delimiter = quote[0]
207+
delimiter = quote.charAt(0)
208208
if heredoc
209209
# Find the smallest indentation. It will be removed from all lines later.
210210
indent = null

0 commit comments

Comments
 (0)