Fixed regEx to work with Unix an PC files.
authorMike Alsup <malsup@gmail.com>
Wed, 29 Nov 2006 23:25:33 +0000 (23:25 +0000)
committerMike Alsup <malsup@gmail.com>
Wed, 29 Nov 2006 23:25:33 +0000 (23:25 +0000)
build/build/lite.js

index 5fb923b..d5fc19c 100644 (file)
@@ -1,6 +1,6 @@
 load("build/js/writeFile.js");
 
-var blockMatch = /\s*\/\*\*\s*((.|\n)*?)\s*\*\/\n*/g;
+var blockMatch = /\s*\/\*\*\s*((.|\n|\r\n)*?)\s*\*\/\n*/g;
 var f = readFile(arguments[0]).replace( blockMatch, "\n" ).replace( /\n\n+/g, "\n\n" );
 
 writeFile( arguments[1], f );