Make @VERSION replace regex global. Fixes #11960

This commit is contained in:
Rick Waldron 2012-06-23 19:43:12 -04:00
parent 3206be8772
commit d4b5a1974d

View File

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