stubbornella/csslint — pull request #227 by daniellmb (2012-01-25 00:14:49+00:00)
Title: 'Evidence' is wrong when running under WSH

This is seems to be a bug with the regex use of split, blank lines are not included so the line number used for evidence don't match up.

Using a regex to do the split skips all blank lines:

lines = text.split(/\n\r?/g); //current code

This can be fixed if you instead use the regex to replace line feeds with a unique value and then a simple string to split on (not a regex).

lines = text.replace(/\n\r?/g, "$split$").split('$split$'); //fix that worked for me :)