Skip to content

Commit 860689d

Browse files
committed
Replaced instances of var with let in Gruntfile.js
1 parent 372ffde commit 860689d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Gruntfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ module.exports = function(grunt) {
153153
dest: '<%= paths.build %>/',
154154
options: {
155155
process: function(content) {
156-
var scriptsRegex = /<!-- begin-scripts -->(?:.*\r?\n\s)*<!-- end-scripts -->/,
156+
let scriptsRegex = /<!-- begin-scripts -->(?:.*\r?\n\s)*<!-- end-scripts -->/,
157157
builtScriptTag = '<script type="text/javascript" src="../<%= files.cat %>"></script>';
158158
return content.replace(scriptsRegex, grunt.template.process(builtScriptTag));
159159
}
@@ -261,7 +261,7 @@ module.exports = function(grunt) {
261261

262262
// custom task to build the gh-pages index.md file
263263
grunt.registerTask('build:gh-pages', 'Create the gh-pages markdown.', function() {
264-
var template = grunt.file.read('doc/gh-pages.template.md'),
264+
let template = grunt.file.read('doc/gh-pages.template.md'),
265265
data = {
266266
pkg: grunt.file.readJSON('package.json'),
267267
doc: grunt.file.read('doc/README.md'),

0 commit comments

Comments
 (0)