commit 51c6668010a948107a143fc30a58ab0e9d9bd6d4
parent 7a852d3774bf3ab127c44b5a4859326450100d78
Author: Dimi <dlee@mozilla.com>
Date: Thu, 30 Oct 2025 08:17:11 +0000
Bug 1936595 - Add a negative match for `phonetic` in the phone number matching heuristic. r=NeilDeakin,credential-management-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D266798
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/toolkit/components/formautofill/shared/HeuristicsRegExp.sys.mjs b/toolkit/components/formautofill/shared/HeuristicsRegExp.sys.mjs
@@ -381,7 +381,8 @@ export const HeuristicsRegExp = {
// ==== Telephone ====
tel:
- "phone|mobile|contact.?number" +
+ "(?<neg>phonetic)" +
+ "|phone|mobile|contact.?number" +
"|telefonnummer" + // de-DE
"|telefono|teléfono" + // es
"|telfixe" + // fr-FR