File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,14 +42,14 @@ module.exports = function(gulp, common) {
4242 gulp . src ( _sourceArr )
4343 . pipe ( common . plugins . replace ( 'qui_' , common . config . prefix + '_' ) )
4444 . pipe ( common . plugins . replace ( _dateRegex , _formattingDate ) )
45- . pipe ( common . plugins . replace ( / @ a u t h o r .* \n / , '@author ' + _authorName + '\n ' ) )
45+ . pipe ( common . plugins . replace ( / @ a u t h o r .* ( [ \r \n ] ) / , '@author ' + _authorName + '$1 ' ) )
4646 . pipe ( gulp . dest ( '../project' ) ) ;
4747
4848 gulp . src ( [ 'project/demo.scss' ] )
4949 . pipe ( common . plugins . replace ( '../qmui/_qmui.scss' , _targetQmuiStylePath ) )
5050 . pipe ( common . plugins . replace ( 'demo.scss' , common . config . resultCssFileName ) )
5151 . pipe ( common . plugins . replace ( _dateRegex , _formattingDate ) )
52- . pipe ( common . plugins . replace ( / @ a u t h o r .* \n / , '@author ' + _authorName + '\n ' ) )
52+ . pipe ( common . plugins . replace ( / @ a u t h o r .* ( [ \r \n ] ) / , '@author ' + _authorName + '$1 ' ) )
5353 . pipe ( common . plugins . rename ( common . config . resultCssFileName ) )
5454 . pipe ( gulp . dest ( '../project' ) ) ;
5555
You can’t perform that action at this time.
0 commit comments