aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2008-01-20 14:23:22 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2008-01-20 14:23:22 +0000
commite7fef859f10045a296368e82d7bbe69924d338c2 (patch)
treec574071a1f22279e8e330b287ad96824bf8d11b4
parent0635df43914eec10e4b468ddb2f952f5024c644e (diff)
downloadjquery-e7fef859f10045a296368e82d7bbe69924d338c2.tar.gz
jquery-e7fef859f10045a296368e82d7bbe69924d338c2.zip
global replace for @VERSION, fixed #2101
-rw-r--r--build/build/version.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/build/version.js b/build/build/version.js
index 8d6158ca5..f586c77cb 100644
--- a/build/build/version.js
+++ b/build/build/version.js
@@ -1,4 +1,4 @@
load("build/js/writeFile.js");
var file = arguments[0];
-writeFile(file, readFile(file).replace("@VERSION", readFile("version.txt").replace( /^\s+|\s+$/g, "" )));
+writeFile(file, readFile(file).replace(new RegExp("@VERSION", "g"), readFile("version.txt").replace( /^\s+|\s+$/g, "" )));