Skip to content
Permalink
Browse files

Less aggressive semicolon insertion for the minified file.

  • Loading branch information...
jeresig committed May 2, 2011
1 parent f8a112f commit 89fd9dffad00c8a119c84de9a2453476643327a1
Showing with 1 addition and 1 deletion.
  1. +1 −1 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" ) + ";" );

1 comment on commit 89fd9df

@mathiasbynens

This comment has been minimized.

Copy link
Contributor

commented on 89fd9df May 2, 2011

Whew.

Please sign in to comment.
You can’t perform that action at this time.