зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1790970 - Adding 邮箱 (chinese for email) in isInferredEmailField to detect usernameField on alipay.com r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D157436
This commit is contained in:
Родитель
3ba2af4338
Коммит
175f4b8c5a
|
@ -1424,7 +1424,7 @@ const LoginHelper = {
|
|||
* @returns {boolean} True if any of the rules matches
|
||||
*/
|
||||
isInferredEmailField(element) {
|
||||
const expr = /email/i;
|
||||
const expr = /email|邮箱/i;
|
||||
|
||||
if (element.type == "email") {
|
||||
return true;
|
||||
|
|
|
@ -18,7 +18,7 @@ const attributeTestData = [
|
|||
expectation: "none",
|
||||
},
|
||||
{
|
||||
testValues: ["email", "EmaiL", "loginemail"],
|
||||
testValues: ["email", "EmaiL", "loginemail", "邮箱"],
|
||||
expectation: "email",
|
||||
},
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче