1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Fix getting of character at index

This commit is contained in:
Andrey Taritsyn 2015-02-22 19:08:15 +03:00
parent 8f5c77c3ce
commit 71c59dddcc
2 changed files with 2 additions and 2 deletions

View file

@ -208,7 +208,7 @@
heredoc = quote.length === 3;
ref2 = this.matchWithInterpolations(regex, quote), tokens = ref2.tokens, end = ref2.index;
$ = tokens.length - 1;
delimiter = quote[0];
delimiter = quote.charAt(0);
if (heredoc) {
indent = null;
doc = ((function() {

View file

@ -204,7 +204,7 @@ exports.Lexer = class Lexer
{tokens, index: end} = @matchWithInterpolations regex, quote
$ = tokens.length - 1
delimiter = quote[0]
delimiter = quote.charAt(0)
if heredoc
# Find the smallest indentation. It will be removed from all lines later.
indent = null