File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function traverse(input) {
19
19
else if ( isObject ( input ) ) {
20
20
for ( let key in input ) {
21
21
if ( typeof input [ key ] === 'string' ) {
22
- input [ key ] = input [ key ] . replace ( / ( \n \s * ) / g, '' ) ;
22
+ input [ key ] = input [ key ] . replace ( / ( \n \s + ) / g, '' ) ;
23
23
}
24
24
traverse ( input [ key ] ) ;
25
25
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " template-string-optimize-loader" ,
3
- "version" : " 2.2.0 " ,
3
+ "version" : " 2.2.1 " ,
4
4
"description" : " template string optimize loader module for webpack" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "test" : " webpack && webpack --config webpack.config.optimize.js"
7
+ "test" : " webpack && webpack --config webpack.config.optimize.js" ,
8
+ "release" : " npm publish"
8
9
},
9
10
"author" : " chenjiahan" ,
10
11
"license" : " ISC" ,
You can’t perform that action at this time.
0 commit comments