From e7fef859f10045a296368e82d7bbe69924d338c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Sun, 20 Jan 2008 14:23:22 +0000 Subject: [PATCH] global replace for @VERSION, fixed #2101 --- build/build/version.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build/version.js b/build/build/version.js index 8d6158ca..f586c77c 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, "" )));