Ensure that an endline is in place at the end of the minified jQuery file.

1.7/enhancement_8685
John Resig 2011-05-02 16:32:02 -04:00
parent f4b5d3fc51
commit f8a112f08e
1 changed files with 1 additions and 1 deletions

View File

@ -4,4 +4,4 @@ var print = require("sys").print,
src = require("fs").readFileSync(process.argv[2], "utf8");
// Previously done in sed but reimplemented here due to portability issues
print(src.replace(/^(\s*\*\/)(.+)/m, "$1\n$2;"));
print(src.replace(/^(\s*\*\/)(.+)/m, "$1\n$2;").replace(/([^;]*)$/, "$1;"));