File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 6
6
'use strict' ;
7
7
8
8
var nlWin = '\r\n' ,
9
- nlMac = '\n' ;
9
+ nlUnix = '\n' ;
10
10
11
- function findCopyright ( lang , newLineSystem ) {
11
+ function findCopyright ( lang , nlSys ) {
12
12
var copyrightText = {
13
13
firstLine : 'Copyright © 2015 Magento. All rights reserved.' ,
14
14
secondLine : 'See COPYING.txt for license details.'
15
15
} ;
16
16
switch ( lang ) {
17
17
case 'less' :
18
18
return new RegExp (
19
- '// /\\*\\*' + newLineSystem + '// \\* ' +
19
+ '// /\\*\\*' + nlSys + '// \\* ' +
20
20
copyrightText . firstLine +
21
- '' + newLineSystem + '// \\* ' +
21
+ '' + nlSys + '// \\* ' +
22
22
copyrightText . secondLine +
23
- '' + newLineSystem + '// \\*/' + newLineSystem + newLineSystem
23
+ '' + nlSys + '// \\*/' + nlSys + nlSys
24
24
) ;
25
25
break ;
26
26
default :
@@ -33,11 +33,11 @@ module.exports = {
33
33
options : {
34
34
patterns : [
35
35
{
36
- match : findCopyright ( 'less' , nlMac ) ,
36
+ match : findCopyright ( 'less' , nlWin ) ,
37
37
replacement : ''
38
38
} ,
39
39
{
40
- match : findCopyright ( 'less' , nlWin ) ,
40
+ match : findCopyright ( 'less' , nlUnix ) ,
41
41
replacement : ''
42
42
}
43
43
]
You can’t perform that action at this time.
0 commit comments