From ba082e88cb623008f2078d7b0a71e4a0bd808eb2 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Fri, 24 Jul 2020 13:50:49 +1000 Subject: [PATCH] Add Apple Pay, Google Pay, Shop Pay, Visa, Master, Amex and Venmo detection --- bin/validate.js | 5 - src/apps.json | 257 +++++++++--------- .../webextension/images/icons/Amex.svg | 37 +++ .../webextension/images/icons/Mastercard.svg | 12 + .../webextension/images/icons/Venmo.svg | 1 + .../webextension/images/icons/Visa.svg | 14 + 6 files changed, 192 insertions(+), 134 deletions(-) create mode 100644 src/drivers/webextension/images/icons/Amex.svg create mode 100644 src/drivers/webextension/images/icons/Mastercard.svg create mode 100644 src/drivers/webextension/images/icons/Venmo.svg create mode 100644 src/drivers/webextension/images/icons/Visa.svg diff --git a/bin/validate.js b/bin/validate.js index 77724f73f..f28ecb17a 100755 --- a/bin/validate.js +++ b/bin/validate.js @@ -66,11 +66,6 @@ try { throw new Error(`${error.message} (${id})`) } - // - if (/\.[+*]/.test(regex)) { - console.log(regex) - } - // Count capture groups const groups = new RegExp(`${regex}|`).exec('').length - 1 diff --git a/src/apps.json b/src/apps.json index 9b6938144..bdeb98395 100644 --- a/src/apps.json +++ b/src/apps.json @@ -1,67 +1,6 @@ { "$schema": "../schema.json", "apps": { - "Apple Pay": { - "cats": [ - 41 - ], - "html": [ - "<[^>]+aria-labelledby=\"pi-apple_pay", - "