add Nostr Nests embed (#377)

* add Nostr Nests embed

* remove wildcard

* fix import to match import convention

* always show link, but hide iframe when necessary
This commit is contained in:
Sam Samskies
2023-03-03 09:05:10 -10:00
committed by GitHub
parent ca9b8a9e72
commit 4325c49435
4 changed files with 24 additions and 7 deletions

View File

@ -147,3 +147,8 @@ export const TwitchRegex = /twitch.tv\/([a-z0-9_]+$)/i;
*/
export const AppleMusicRegex =
/music\.apple\.com\/([a-z]{2}\/)?(?:album|playlist)\/[\w\d-]+\/([.a-zA-Z0-9-]+)(?:\?i=\d+)?/i;
/**
* Nostr Nests embed regex
*/
export const NostrNestsRegex = /nostrnests\.com\/[a-zA-Z0-9]+/i;