Menu

#8 Unsafe character on line endings with jslint 2011-06-15

open
nobody
None
5
2011-06-21
2011-06-21
Anonymous
No

Using the 2011-06-15 edition of jslint I'm getting unsafe character warnings on every line ending.

It seems jslint is receiving an array of the source to be analysed with line endings still intact.

Inserting this code on line 6595 of jslint.js fixes the issue by normalising the line ends.

for (var i = 0, len = the_source.length; i < len; i++) {
the_source[i] = the_source[i].replace(/\n|\r/g, '');
}

Discussion


Log in to post a comment.