Merge pull request #3873 from Taritsyn/master

Fix getting of character at index
This commit is contained in:
Jeremy Ashkenas
2015-02-23 10:36:47 -05:00
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