From 97462703ac7c8655ca64c92789b5fb5bd97cff25 Mon Sep 17 00:00:00 2001 From: codecalm Date: Fri, 27 Mar 2020 21:55:07 +0100 Subject: changelog image fix --- gulpfile.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 32041c49..967de80b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -426,15 +426,15 @@ gulp.task('changelog-commit', function (cb) { cp.exec('git status', function (err, ret) { let newIcons = [], modifiedIcons = [], renamedIcons = []; - ret.replace(/new file:\s+src\/_icons\/([a-z1-9-]+)\.svg/g, function (m, fileName) { + ret.replace(/new file:\s+src\/_icons\/([a-z0-9-]+)\.svg/g, function (m, fileName) { newIcons.push(fileName); }); - ret.replace(/modified:\s+src\/_icons\/([a-z1-9-]+)\.svg/g, function (m, fileName) { + ret.replace(/modified:\s+src\/_icons\/([a-z0-9-]+)\.svg/g, function (m, fileName) { modifiedIcons.push(fileName); }); - ret.replace(/renamed:\s+src\/_icons\/([a-z1-9-]+).svg -> src\/_icons\/([a-z1-9-]+).svg/g, function (m, fileNameBefore, fileNameAfter) { + ret.replace(/renamed:\s+src\/_icons\/([a-z0-9-]+).svg -> src\/_icons\/([a-z0-9-]+).svg/g, function (m, fileNameBefore, fileNameAfter) { renamedIcons.push([fileNameBefore, fileNameAfter]); }); @@ -456,15 +456,15 @@ gulp.task('changelog', function (cb) { let newIcons = [], modifiedIcons = [], renamedIcons = []; - ret.replace(/A\s+src\/_icons\/([a-z1-9-]+)\.svg/g, function (m, fileName) { + ret.replace(/A\s+src\/_icons\/([a-z0-9-]+)\.svg/g, function (m, fileName) { newIcons.push(fileName); }); - ret.replace(/M\s+src\/_icons\/([a-z1-9-]+)\.svg/g, function (m, fileName) { + ret.replace(/M\s+src\/_icons\/([a-z0-9-]+)\.svg/g, function (m, fileName) { modifiedIcons.push(fileName); }); - ret.replace(/R[0-9]+\s+src\/_icons\/([a-z1-9-]+)\.svg\s+src\/_icons\/([a-z1-9-]+).svg/g, function (m, fileNameBefore, fileNameAfter) { + ret.replace(/R[0-9]+\s+src\/_icons\/([a-z0-9-]+)\.svg\s+src\/_icons\/([a-z0-9-]+).svg/g, function (m, fileNameBefore, fileNameAfter) { renamedIcons.push([fileNameBefore, fileNameAfter]); }); -- cgit v1.2.1