Skip to content

Commit

Permalink
Add unicode flag to all regular expression literals
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbenner committed Feb 17, 2024
1 parent 72edd34 commit 268191b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ module.exports = function gruntConfig(grunt) {
dest: '<%= paths.build %>/<%= files.min %>',
options: {
output: {
comments: /^!/
comments: /^!/u
},
report: 'gzip',
ie8: true
Expand All @@ -113,7 +113,7 @@ module.exports = function gruntConfig(grunt) {
dest: '<%= paths.build %>/<%= files.cat %>',
options: {
process: (content) => {
const replaceRegex = /\s\/\* \[POWERTIP CODE\] \*\//;
const replaceRegex = /\s\/\* \[POWERTIP CODE\] \*\//u;
const coreFile = grunt.file.read(grunt.template.process('<%= concat.core.dest %>'));
return grunt.template.process(content).replace(replaceRegex, coreFile);
}
Expand All @@ -128,7 +128,7 @@ module.exports = function gruntConfig(grunt) {
dest: '<%= paths.build %>/',
options: {
process: (content) => {
const scriptsRegex = /<!-- begin-scripts -->(?:.*\r?\n\s)*<!-- end-scripts -->/;
const scriptsRegex = /<!-- begin-scripts -->(?:.*\r?\n\s)*<!-- end-scripts -->/u;
const builtScriptTag = '<script type="text/javascript" src="../<%= files.cat %>"></script>';
return content.replace(scriptsRegex, grunt.template.process(builtScriptTag));
}
Expand Down

0 comments on commit 268191b

Please sign in to comment.