global replace for @VERSION, fixed #2101

1.7/enhancement_8685
Jörn Zaefferer 2008-01-20 14:23:22 +00:00
parent 0635df4391
commit e7fef859f1
1 changed files with 1 additions and 1 deletions

View File

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