Fixed regEx to work with Unix an PC files.

This commit is contained in:
Mike Alsup 2006-11-29 23:25:33 +00:00
parent 3ab145e5aa
commit c136717119

View file

@ -1,6 +1,6 @@
load("build/js/writeFile.js"); 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" ); var f = readFile(arguments[0]).replace( blockMatch, "\n" ).replace( /\n\n+/g, "\n\n" );
writeFile( arguments[1], f ); writeFile( arguments[1], f );