Skip to content

Commit 00bfdd7

Browse files
committed
Fix VERSION update script
This broke after updating to es6 formatted code. Fixes #1016
1 parent 891f48b commit 00bfdd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/version.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ module.exports = function(grunt) {
1818
grunt.log.writeln('Updating to version ' + version);
1919

2020
async.each([
21-
['lib/handlebars/base.js', /var VERSION = ['"](.*)['"];/, 'var VERSION = "' + version + '";'],
22-
['components/bower.json', /"version":.*/, '"version": "' + version + '",'],
23-
['components/handlebars.js.nuspec', /<version>.*<\/version>/, '<version>' + version + '</version>']
21+
['lib/handlebars/base.js', (/const VERSION = ['"](.*)['"];/), 'const VERSION = \'' + version + '\';'],
22+
['components/bower.json', (/"version":.*/), '"version": "' + version + '",'],
23+
['components/handlebars.js.nuspec', (/<version>.*<\/version>/), '<version>' + version + '</version>']
2424
],
2525
function(args, callback) {
2626
replace.apply(undefined, args);

0 commit comments

Comments
 (0)