From f8a112f08e9349432cfa6bfc2da5d4275aceb11a Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 2 May 2011 16:32:02 -0400 Subject: [PATCH] Ensure that an endline is in place at the end of the minified jQuery file. --- build/post-compile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/post-compile.js b/build/post-compile.js index 4bcafe81..3e857bfd 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;"));