Skip to content

Commit 109839e

Browse files
committed
fix: handle did:web
1 parent 3aac6dd commit 109839e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shared/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const BACKGROUND_THEMES = {
8383
// INFO: Regex for capture groups
8484
export const BLUESKY_URL_EXTRACT_REGEX = /profile\/([^/]+)\/post\/([^/]+)/
8585
export const BSKY_POST_AT_URI_REGEX =
86-
/^at:\/\/(did:plc:[a-z0-9]+)\/app\.bsky\.feed\.post\/([a-z0-9]+)$/
86+
/^at:\/\/(did:[a-z]+:[\w.:%-]+)\/app\.bsky\.feed\.post\/([a-z0-9]+)$/
8787
export const BLOG_META_TAG_REGEX =
8888
/<meta[^>]*(?:property|name)=["']([^"']+)["'][^>]*content=["']([^"']+)["'][^>]*>/gi
8989
export const META_TAG_TITLE_REGEX = /<title>([^<]*)<\/title>/i

0 commit comments

Comments
 (0)