From f5d20e7fe9a999b5fbc751bf343259ba9c0e16f8 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Sat, 29 Aug 2020 17:13:02 +0400 Subject: [PATCH] Bug 25067: Fix globs for staff and opac string extraction It looks like gulp (or more likely its dependency 'glob') does not like negative ('!') globs and the 'nocase' option when used together We have to repeat the globs to get what we want (exclude all *MARC* files from the staff/opac string extraction process --- gulpfile.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 3a6f3925c1..f6210ce021 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -131,6 +131,9 @@ function po_extract_staff () { '!koha-tmpl/intranet-tmpl/prog/en/**/*MARC21*', '!koha-tmpl/intranet-tmpl/prog/en/**/*NORMARC*', '!koha-tmpl/intranet-tmpl/prog/en/**/*UNIMARC*', + '!koha-tmpl/intranet-tmpl/prog/en/**/*marc21*', + '!koha-tmpl/intranet-tmpl/prog/en/**/*normarc*', + '!koha-tmpl/intranet-tmpl/prog/en/**/*unimarc*', ]; return src(globs, { read: false, nocase: true }) @@ -146,6 +149,9 @@ function po_extract_opac () { '!koha-tmpl/opac-tmpl/bootstrap/en/**/*MARC21*', '!koha-tmpl/opac-tmpl/bootstrap/en/**/*NORMARC*', '!koha-tmpl/opac-tmpl/bootstrap/en/**/*UNIMARC*', + '!koha-tmpl/opac-tmpl/bootstrap/en/**/*marc21*', + '!koha-tmpl/opac-tmpl/bootstrap/en/**/*normarc*', + '!koha-tmpl/opac-tmpl/bootstrap/en/**/*unimarc*', ]; return src(globs, { read: false, nocase: true }) -- 2.20.1