Skip to content
Permalink
Browse files

global replace for @Version, fixed #2101

  • Loading branch information
jzaefferer committed Jan 20, 2008
1 parent 0635df4 commit e7fef859f10045a296368e82d7bbe69924d338c2
Showing with 1 addition and 1 deletion.
  1. +1 −1 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, "" )));

0 comments on commit e7fef85

Please sign in to comment.
You can’t perform that action at this time.