Unsafe character on line endings with jslint 2011-06-15
Brought to you by:
mbatsis
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, '');
}