Skip to content

Commit 43ce6e9

Browse files
author
Bogdan Plieshka
committed
MAGETWO-38002: Automate UI Documentation build process with Grunt.js
- CR changes
1 parent efe6427 commit 43ce6e9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

dev/tools/grunt/configs/replace.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66
'use strict';
77

88
var nlWin = '\r\n',
9-
nlMac = '\n';
9+
nlUnix = '\n';
1010

11-
function findCopyright(lang, newLineSystem) {
11+
function findCopyright(lang, nlSys) {
1212
var copyrightText = {
1313
firstLine: 'Copyright © 2015 Magento. All rights reserved.',
1414
secondLine: 'See COPYING.txt for license details.'
1515
};
1616
switch (lang) {
1717
case 'less':
1818
return new RegExp(
19-
'// /\\*\\*' + newLineSystem + '// \\* ' +
19+
'// /\\*\\*' + nlSys + '// \\* ' +
2020
copyrightText.firstLine +
21-
'' + newLineSystem + '// \\* ' +
21+
'' + nlSys + '// \\* ' +
2222
copyrightText.secondLine +
23-
'' + newLineSystem + '// \\*/' + newLineSystem + newLineSystem
23+
'' + nlSys + '// \\*/' + nlSys + nlSys
2424
);
2525
break;
2626
default:
@@ -33,11 +33,11 @@ module.exports = {
3333
options: {
3434
patterns: [
3535
{
36-
match: findCopyright('less', nlMac),
36+
match: findCopyright('less', nlWin),
3737
replacement: ''
3838
},
3939
{
40-
match: findCopyright('less', nlWin),
40+
match: findCopyright('less', nlUnix),
4141
replacement: ''
4242
}
4343
]

0 commit comments

Comments
 (0)