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, "" )));