Bug 1741719 - Make cc-name DE heuristic fix for Amazon sites more generic. r=dimi

Differential Revision: https://phabricator.services.mozilla.com/D131438
This commit is contained in:
Tim Giles 2021-11-23 14:40:50 +00:00
Родитель e1640bbf0a
Коммит 9031fa4329
2 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -62,11 +62,10 @@
<input name="cccvc" id="CVV" maxlength="4" size="5" type="password"> <input name="cccvc" id="CVV" maxlength="4" size="5" type="password">
</div> </div>
</form> </form>
<!-- We use 'test-input[x]' here so we can verify label text instead of tipping off the heuristic via id or name -->
<form autocomplete="off"> <form autocomplete="off">
<div> <div>
<label for="test-input">Name auf der Karte</label> <label for="test-input">Name auf der Karte</label>
<input id="test-input" maxlength="30" type="text"> <input id="test-input" maxlength="30" type="text" name="ppw-accountHolderName">
</div> </div>
<div> <div>
<label for="DE_select">Kartenmarke</label> <label for="DE_select">Kartenmarke</label>

Просмотреть файл

@ -49,8 +49,8 @@ var HeuristicsRegExp = {
"additional-name": "apellido.?materno|lastlastname", "additional-name": "apellido.?materno|lastlastname",
"cc-name": "cc-name":
// eslint-disable-next-line prettier/prettier // eslint-disable-next-line prettier/prettier
"titulaire" + // fr-FR "accountholdername" +
"|(name auf der karte)", // de-DE "|titulaire", // fr-FR
"cc-number": "(cc|kk)nr", // de-DE "cc-number": "(cc|kk)nr", // de-DE
"cc-exp-month": "(cc|kk)month", // de-DE "cc-exp-month": "(cc|kk)month", // de-DE
"cc-exp-year": "(cc|kk)year", // de-DE "cc-exp-year": "(cc|kk)year", // de-DE