mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +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) {
|
function isValidENSAddress (address) {
|
||||||
return address.match(/^.{7,}\.(eth|test|xyz)$/)
|
return address.match(/^.{3,}\.(eth|test|xyz)$/)
|
||||||
}
|
}
|
||||||
|
|
||||||
function isInvalidChecksumAddress (address) {
|
function isInvalidChecksumAddress (address) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user