mirror of
https://github.com/less/less.js.git
synced 2026-01-25 07:08:17 -05:00
Adjusting the line feeds if they're windows based (\r\n) to \n.
This commit is contained in:
@@ -24,6 +24,7 @@ fs.readdirSync('test/less').forEach(function (file) {
|
||||
|
||||
fs.readFile(path.join('test/css', name) + '.css', 'utf-8', function (e, css) {
|
||||
sys.print("- " + name + ": ")
|
||||
css = css && css.replace(/\r\n/g, '\n');
|
||||
if (less === css) { sys.print(stylize('OK', 'green')) }
|
||||
else if (err) {
|
||||
sys.print(stylize("ERROR: " + (err && err.message), 'red'));
|
||||
|
||||
Reference in New Issue
Block a user