global replace for @VERSION, fixed #2101
This commit is contained in:
parent
0635df4391
commit
e7fef859f1
|
@ -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, "" )));
|
||||
|
|
Loading…
Reference in a new issue