Skip to content

Commit

Permalink
Less aggressive semicolon insertion for the minified file.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed May 2, 2011
1 parent f8a112f commit 89fd9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/post-compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whew.

Please sign in to comment.