Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

parser: Changed character count in error message to be 1-based to mat…

…ch most editors
  • Loading branch information...
commit 3bd7ce52b73aafd838d00bc3688b52dcdcfef626 1 parent f4b7837
@Munter Munter authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/parse.js
View
2  lib/parse.js
@@ -58,7 +58,7 @@ CSSOM.parse = function parse(token) {
var parseError = function(message) {
var lines = token.substring(0, i).split('\n');
var lineCount = lines.length;
- var charCount = lines.pop().length;
+ var charCount = lines.pop().length + 1;
var error = new Error(message + ' (line ' + lineCount + ', char ' + charCount + ')');
error.line = lineCount;
error.char = charCount;
Please sign in to comment.
Something went wrong with that request. Please try again.