mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-13 20:45:05 +00:00
Temporary fix for .eth.eth (#1978)
* Update config snapshot * Add another condition in to ensure no period delimiters
This commit is contained in:
parent
3074e50909
commit
23f6ffe56f
@ -74,7 +74,9 @@ export function isValidENSorEtherAddress(address: string): boolean {
|
||||
|
||||
export function isValidENSName(str: string) {
|
||||
try {
|
||||
return str.length > 6 && normalise(str) !== '' && str.substring(0, 2) !== '0x';
|
||||
return (
|
||||
str.length > 6 && !str.includes('.') && normalise(str) !== '' && str.substring(0, 2) !== '0x'
|
||||
);
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user