mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 19:27:56 -05:00
Ensure that an endline is in place at the end of the minified jQuery file.
This commit is contained in:
@@ -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;"));
|
||||
|
||||
Reference in New Issue
Block a user