Przeglądaj źródła

Fix file comparing for latest nodejs version (Windows x64 v0.10.17).

Vladislav Folts 11 lat temu
rodzic
commit
73d0d105ab
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      test/test_compile.js

+ 2 - 1
test/test_compile.js

@@ -6,7 +6,8 @@ var path = require("path");
 var Test = require("test.js");
 
 function normalizeLineEndings(text){
-    return text.replace(/\r\n/g, '\n');
+    return text.replace(/\r\n/g, '\n')
+               .replace(/\s+$/,''); // ending spaces
 }
 
 function compareResults(result, name, dirs){