Skip to content

Commit

Permalink
Bug 1821065 - Add expiration date related polish keywords r=mtigley,c…
Browse files Browse the repository at this point in the history
…redential-management-reviewers,sgalich

Differential Revision: https://phabricator.services.mozilla.com/D178325
  • Loading branch information
DimiDL committed May 18, 2023
1 parent 713fc30 commit fab0d84
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions toolkit/components/formautofill/shared/HeuristicsRegExp.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// prettier-ignore
export const HeuristicsRegExp = {
RULES: {
email: undefined,
Expand Down Expand Up @@ -40,11 +41,26 @@ export const HeuristicsRegExp = {
"address-line3": "addrline3|address_3",
"address-level1": "land", // de-DE
"additional-name": "apellido.?materno|lastlastname",
"cc-name": "accountholdername" + "|titulaire", // fr-FR
"cc-number": "(cc|kk)nr", // de-DE
"cc-exp-month": "month" + "|(cc|kk)month", // de-DE
"cc-exp-year": "year" + "|(cc|kk)year", // de-DE
"cc-type": "type" + "|kartenmarke", // de-DE
"cc-name":
"accountholdername" +
"|titulaire", // fr-FR
"cc-number":
"(cc|kk)nr", // de-DE
"cc-exp":
"ważna.*do" + // pl-PL
"|data.*ważności", // pl-PL
"cc-exp-month":
"month" +
"|(cc|kk)month" + // de-DE
"|miesiąc", // pl-PL
"cc-exp-year":
"year" +
"|(cc|kk)year" + // de-DE
"|rok", // pl-PL
"cc-type":
"type" +
"|kartenmarke" + // de-DE
"|typ.*karty", // pl-PL
},

//=========================================================================
Expand Down

0 comments on commit fab0d84

Please sign in to comment.