From 2c1bf38f0aa963d49124a318b1d5c63755810a86 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sat, 4 Jan 2025 21:17:35 -0800 Subject: [PATCH] Change filter to allow TLDs other than ".eth" --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index b32a180..237e562 100644 --- a/index.html +++ b/index.html @@ -510,7 +510,7 @@ const block = formData.get('block') === '' ? 'latest' : Number(formData.get('block')); const combined = `${formData.get('text')}\n${await formData.get('file').text()}`; // Concatenate textarea and file inputs const parsed = new Set(combined.split('\n').map(c => c.split(',')).flat().map(e => e.trim().toLocaleLowerCase())); // Split on newline or comma, flatten, trim whitespace, lowercase, and de-duplicate - const cleaned = [...parsed].filter(name => name.slice(-4) === '.eth'); // Remove anything that does not end in '.eth' + const cleaned = [...parsed].filter(name => name.includes('.')); // Remove anything that does not have a dot, names must have at least one if (cleaned.length === 0) { status.textContent = 'No valid ENS names found.'; -- 2.47.3