/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
dev/tools/grunt/configs/replace.js
56 строк
1 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
11 ноя 2025, 17:53
11 ноя 2025, 17:53
f22b64f
Код
Авторство
О чём код?
/** * Copyright 2015 Adobe * All Rights Reserved. */ 'use strict'; var nlWin = '\r\n', nlUnix = '\n'; function findCopyright(lang, nlSys) { var currentYear = new Date().getFullYear(), copyrightText = { firstLine: 'Copyright ' + currentYear + ' Adobe', secondLine: 'All Rights Reserved.' }; switch (lang) { case 'less': return new RegExp( '// /\\*\\*' + nlSys + '// \\* ' + copyrightText.firstLine + '' + nlSys + '// \\* ' + copyrightText.secondLine + '' + nlSys + '// \\*/' + nlSys + nlSys ); break; default: return; } } module.exports = { documentation: { options: { patterns: [ { match: findCopyright('less', nlWin), replacement: '' }, { match: findCopyright('less', nlUnix), replacement: '' } ] }, files: [{ expand: true, flatten: true, src: [ '<%= path.doc %>/source/**/*.less' ], dest: '<%= path.doc %>/source/' }] } };