Skip to content

Commit 92abe0a

Browse files
committed
Merge pull request #38 from Munter/gh-pages
Changed char count to be 1-based
2 parents f4b7837 + 3bd7ce5 commit 92abe0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ CSSOM.parse = function parse(token) {
5858
var parseError = function(message) {
5959
var lines = token.substring(0, i).split('\n');
6060
var lineCount = lines.length;
61-
var charCount = lines.pop().length;
61+
var charCount = lines.pop().length + 1;
6262
var error = new Error(message + ' (line ' + lineCount + ', char ' + charCount + ')');
6363
error.line = lineCount;
6464
error.char = charCount;

0 commit comments

Comments
 (0)