From d4b5a1974d2b60989e9fe1158ce0b8c1f577c2d1 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Sat, 23 Jun 2012 19:43:12 -0400 Subject: [PATCH] Make @VERSION replace regex global. Fixes #11960 --- grunt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grunt.js b/grunt.js index 66850a19e..7db8c7c47 100644 --- a/grunt.js +++ b/grunt.js @@ -348,7 +348,7 @@ module.exports = function( grunt ) { // Embed Date // Embed Version compiled = compiled.replace( "@DATE", new Date() ) - .replace( "@VERSION", version ); + .replace( /@VERSION/g, version ); // Write concatenated source to file file.write( name, compiled );