File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ module.exports = function gruntConfig(grunt) {
100
100
dest : '<%= paths.build %>/<%= files.min %>' ,
101
101
options : {
102
102
output : {
103
- comments : / ^ ! /
103
+ comments : / ^ ! / u
104
104
} ,
105
105
report : 'gzip' ,
106
106
ie8 : true
@@ -113,7 +113,7 @@ module.exports = function gruntConfig(grunt) {
113
113
dest : '<%= paths.build %>/<%= files.cat %>' ,
114
114
options : {
115
115
process : ( content ) => {
116
- const replaceRegex = / \s \/ \* \[ P O W E R T I P C O D E \] \* \/ / ;
116
+ const replaceRegex = / \s \/ \* \[ P O W E R T I P C O D E \] \* \/ / u ;
117
117
const coreFile = grunt . file . read ( grunt . template . process ( '<%= concat.core.dest %>' ) ) ;
118
118
return grunt . template . process ( content ) . replace ( replaceRegex , coreFile ) ;
119
119
}
@@ -128,7 +128,7 @@ module.exports = function gruntConfig(grunt) {
128
128
dest : '<%= paths.build %>/' ,
129
129
options : {
130
130
process : ( content ) => {
131
- const scriptsRegex = / < ! - - b e g i n - s c r i p t s - - > (?: .* \r ? \n \s ) * < ! - - e n d - s c r i p t s - - > / ;
131
+ const scriptsRegex = / < ! - - b e g i n - s c r i p t s - - > (?: .* \r ? \n \s ) * < ! - - e n d - s c r i p t s - - > / u ;
132
132
const builtScriptTag = '<script type="text/javascript" src="../<%= files.cat %>"></script>' ;
133
133
return content . replace ( scriptsRegex , grunt . template . process ( builtScriptTag ) ) ;
134
134
}
You can’t perform that action at this time.
0 commit comments