Fix out-of-range error when parsing certain files.
An example file that breaks on this is b2f8bf1e74/kitchen-sink/demo.js (L1000)
This commit is contained in:
parent
7cff8e7cff
commit
0f9bcfbc7d
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ exports.$detectIndentation = function(lines, fallback) {
|
|||
prevSpaces = spaces;
|
||||
|
||||
// ignore lines ending with backslash
|
||||
while (line[line.length - 1] == "\\")
|
||||
while (i < max && line[line.length - 1] == "\\")
|
||||
line = lines[i++];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue