diff options
author | John Resig <jeresig@gmail.com> | 2011-05-02 16:36:16 -0400 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2011-05-02 16:36:16 -0400 |
commit | 89fd9dffad00c8a119c84de9a2453476643327a1 (patch) | |
tree | 187cb92dddca0090474ee08b73bb4833845698e2 /build | |
parent | f8a112f08e9349432cfa6bfc2da5d4275aceb11a (diff) | |
download | jquery-89fd9dffad00c8a119c84de9a2453476643327a1.tar.gz jquery-89fd9dffad00c8a119c84de9a2453476643327a1.zip |
Less aggressive semicolon insertion for the minified file.
Diffstat (limited to 'build')
-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 3e857bfdd..1bbeaa6f4 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;").replace(/([^;]*)$/, "$1;")); +print( src.replace( /^(\s*\*\/)(.+)/m, "$1\n$2" ) + ";" ); |