diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2008-01-20 14:23:22 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2008-01-20 14:23:22 +0000 |
commit | e7fef859f10045a296368e82d7bbe69924d338c2 (patch) | |
tree | c574071a1f22279e8e330b287ad96824bf8d11b4 | |
parent | 0635df43914eec10e4b468ddb2f952f5024c644e (diff) | |
download | jquery-e7fef859f10045a296368e82d7bbe69924d338c2.tar.gz jquery-e7fef859f10045a296368e82d7bbe69924d338c2.zip |
global replace for @VERSION, fixed #2101
-rw-r--r-- | build/build/version.js | 2 |
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, "" ))); |