diff options
author | John Resig <jeresig@gmail.com> | 2011-05-02 16:32:02 -0400 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2011-05-02 16:32:02 -0400 |
commit | f8a112f08e9349432cfa6bfc2da5d4275aceb11a (patch) | |
tree | 14b6ae8e09f3ebbc57e52ef1c3cb070cb610b937 /build/post-compile.js | |
parent | f4b5d3fc51cfb2b62f182e88b85386b4456c080d (diff) | |
download | jquery-f8a112f08e9349432cfa6bfc2da5d4275aceb11a.tar.gz jquery-f8a112f08e9349432cfa6bfc2da5d4275aceb11a.zip |
Ensure that an endline is in place at the end of the minified jQuery file.
Diffstat (limited to 'build/post-compile.js')
-rw-r--r-- | build/post-compile.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/post-compile.js b/build/post-compile.js index 4bcafe814..3e857bfdd 100644 --- a/build/post-compile.js +++ b/build/post-compile.js @@ -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;")); |