Temporary fix for .eth.eth (#1978)

* Update config snapshot

* Add another condition in  to ensure no period delimiters
This commit is contained in:
Connor Bryan 2018-06-25 19:39:13 -05:00 committed by Daniel Ternyak
parent 3074e50909
commit 23f6ffe56f

View File

@ -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;
}