/** * Hachette querying page settings with regard to wildcard records * * Copyright (C) 2021 Wojtek Kosior * Redistribution terms are gathered in the `copyright' file. */ /* * IMPORTS_START * IMPORT TYPE_PREFIX * IMPORT each_url_pattern * IMPORTS_END */ function query(storage, url, multiple) { const matched = []; const cb = p => check_pattern(storage, p, multiple, matched); for (const pattern of each_url_pattern(url)) { const result = [pattern, storage.get(TYPE_PREFIX.PAGE, pattern)]; if (result[1] === undefined) continue; if (!multiple) return result; matched.push(result); } return multiple ? matched : [undefined, undefined]; } function query_best(storage, url) { return query(storage, url, false); } function query_all(storage, url) { return query(storage, url, true); } /* * EXPORTS_START * EXPORT query_best * EXPORT query_all * EXPORTS_END */ ojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/installer
AgeCommit message (Expand)Author
2024-04-18system: Remove nss-certs from OS templates, adjust doc....Maxim Cournoyer
2024-04-03Switch order of the default substitute servers....Christopher Baines
2023-07-06installer: Restore LatGrkCyr-8x16 console font depending on language....Denys Nykula
2023-04-30installer: Filter out C.UTF-8 from the list of locales....Josselin Poiret