Skip to content

Commit be78cb9

Browse files
schmidsigskril
andauthored
Update src/pages/web/ensv2-readiness.mdx
Co-authored-by: Greg <[email protected]>
1 parent 8ac9dc5 commit be78cb9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/pages/web/ensv2-readiness.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ ENS supports importing DNS names into ENS, allowing traditional domain names to
4444

4545
Many integrations only treat `.eth` domains as ENS names like this:
4646

47-
```regex
48-
^[a-zA-Z0-9-]+\.eth$
49-
```
47+
```js
48+
if (input.endsWith('.eth') {
49+
// ...
50+
}
5051

5152
This is **incorrect** because it excludes DNS names imported into ENS (like `ensfairy.xyz`).
5253

0 commit comments

Comments
 (0)