mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
Fixed icons files matching in closePassSymbol method
This commit is contained in:
@@ -544,7 +544,7 @@ export default class PKPass extends Bundle {
|
|||||||
super.addBuffer("pass.json", passJson);
|
super.addBuffer("pass.json", passJson);
|
||||||
|
|
||||||
const ICON_REGEX = /icon(?:@\d{1}x)?/;
|
const ICON_REGEX = /icon(?:@\d{1}x)?/;
|
||||||
if (!fileNames.some(ICON_REGEX.test)) {
|
if (!fileNames.some((fileName) => ICON_REGEX.test(fileName))) {
|
||||||
console.warn(
|
console.warn(
|
||||||
"At least one icon file is missing in your bundle. Your pass won't be openable by any Apple Device.",
|
"At least one icon file is missing in your bundle. Your pass won't be openable by any Apple Device.",
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user