Skip to content

Commit 268191b

Browse files
committed
Add unicode flag to all regular expression literals
https://eslint.org/docs/latest/rules/require-unicode-regexp
1 parent 72edd34 commit 268191b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Gruntfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ module.exports = function gruntConfig(grunt) {
100100
dest: '<%= paths.build %>/<%= files.min %>',
101101
options: {
102102
output: {
103-
comments: /^!/
103+
comments: /^!/u
104104
},
105105
report: 'gzip',
106106
ie8: true
@@ -113,7 +113,7 @@ module.exports = function gruntConfig(grunt) {
113113
dest: '<%= paths.build %>/<%= files.cat %>',
114114
options: {
115115
process: (content) => {
116-
const replaceRegex = /\s\/\* \[POWERTIP CODE\] \*\//;
116+
const replaceRegex = /\s\/\* \[POWERTIP CODE\] \*\//u;
117117
const coreFile = grunt.file.read(grunt.template.process('<%= concat.core.dest %>'));
118118
return grunt.template.process(content).replace(replaceRegex, coreFile);
119119
}
@@ -128,7 +128,7 @@ module.exports = function gruntConfig(grunt) {
128128
dest: '<%= paths.build %>/',
129129
options: {
130130
process: (content) => {
131-
const scriptsRegex = /<!-- begin-scripts -->(?:.*\r?\n\s)*<!-- end-scripts -->/;
131+
const scriptsRegex = /<!-- begin-scripts -->(?:.*\r?\n\s)*<!-- end-scripts -->/u;
132132
const builtScriptTag = '<script type="text/javascript" src="../<%= files.cat %>"></script>';
133133
return content.replace(scriptsRegex, grunt.template.process(builtScriptTag));
134134
}

0 commit comments

Comments
 (0)