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) {
1919 else if ( isObject ( input ) ) {
2020 for ( let key in input ) {
2121 if ( typeof input [ key ] === 'string' ) {
22- input [ key ] = input [ key ] . replace ( / ( \n \s * ) / g, '' ) ;
22+ input [ key ] = input [ key ] . replace ( / ( \n \s + ) / g, '' ) ;
2323 }
2424 traverse ( input [ key ] ) ;
2525 }
Original file line number Diff line number Diff line change 11{
22 "name" : " template-string-optimize-loader" ,
3- "version" : " 2.2.0 " ,
3+ "version" : " 2.2.1 " ,
44 "description" : " template string optimize loader module for webpack" ,
55 "main" : " index.js" ,
66 "scripts" : {
7- "test" : " webpack && webpack --config webpack.config.optimize.js"
7+ "test" : " webpack && webpack --config webpack.config.optimize.js" ,
8+ "release" : " npm publish"
89 },
910 "author" : " chenjiahan" ,
1011 "license" : " ISC" ,
You can’t perform that action at this time.
0 commit comments