Skip to content

Commit da94509

Browse files
authored
Merge branch 'main' into crosschain-ui
2 parents 624df21 + 23d8001 commit da94509

File tree

38 files changed

+443
-259
lines changed

38 files changed

+443
-259
lines changed

.changeset/happy-carrots-appear.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Add `isValidENSName` utility function for checking if a string is a valid ENS name. It does not check if the name is actually registered, it only checks if the string is in a valid format.
6+
7+
```ts
8+
import { isValidENSName } from "thirdweb/utils";
9+
10+
isValidENSName("thirdweb.eth"); // true
11+
isValidENSName("foo.bar.com"); // true
12+
isValidENSName("foo"); // false
13+
```

0 commit comments

Comments
 (0)