From d1e4016717fe75009ea41b0e1c68aba70cf03509 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 2705bf6d98..1a37a15e3c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -147,6 +147,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 }) @@ -162,6 +165,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