Commit 89fd9dff authored by John Resig's avatar John Resig

Less aggressive semicolon insertion for the minified file.

parent f8a112f0
...@@ -4,4 +4,4 @@ var print = require("sys").print, ...@@ -4,4 +4,4 @@ var print = require("sys").print,
src = require("fs").readFileSync(process.argv[2], "utf8"); src = require("fs").readFileSync(process.argv[2], "utf8");
// Previously done in sed but reimplemented here due to portability issues // 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" ) + ";" );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment