File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ files.forEach(function (file) {
20
20
const unicode = maxUnicode . toString ( 16 )
21
21
22
22
if ( unicode ) {
23
- svgFile = svgFile . replace ( / - - > \n < s v g / i, function ( m ) {
23
+ svgFile = svgFile . replace ( / - - > \s ? \ n< s v g / i, function ( m ) {
24
24
return `unicode: "${ unicode } "\n${ m } `
25
25
} )
26
26
@@ -34,10 +34,14 @@ files.forEach(function (file) {
34
34
if ( ! svgFile . match ( / \n v e r s i o n : " ? ( [ a - f 0 - 9 . ] + ) " ? / i) ) {
35
35
const minorVersion = newVersion . split ( '.' ) . slice ( 0 , 2 ) . join ( '.' )
36
36
37
- svgFile = svgFile . replace ( / - - > \n < s v g / i, function ( m ) {
37
+ console . log ( svgFile ) ;
38
+
39
+ svgFile = svgFile . replace ( / - - > \s ? \n < s v g / i, function ( m ) {
38
40
return `version: "${ minorVersion } "\n${ m } `
39
41
} )
40
42
43
+ console . log ( svgFile ) ;
44
+
41
45
console . log ( `Add version "${ minorVersion } " to "${ file } "` )
42
46
fs . writeFileSync ( file , svgFile , 'utf8' )
43
47
}
You can’t perform that action at this time.
0 commit comments