mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Lessen the length of ENS validation to 3 (#7285)
This commit is contained in:
parent
9d9f3685bb
commit
a646bfb506
@ -100,7 +100,7 @@ function isValidAddress (address) {
|
||||
}
|
||||
|
||||
function isValidENSAddress (address) {
|
||||
return address.match(/^.{7,}\.(eth|test|xyz)$/)
|
||||
return address.match(/^.{3,}\.(eth|test|xyz)$/)
|
||||
}
|
||||
|
||||
function isInvalidChecksumAddress (address) {
|
||||
|
Loading…
Reference in New Issue
Block a user