Add Apple Music embed

This commit is contained in:
Sam Samskies
2023-02-13 21:12:15 -06:00
parent 37ef874dc6
commit 68b5d9efcb
4 changed files with 29 additions and 2 deletions

View File

@ -146,3 +146,9 @@ export const SpotifyRegex = /open\.spotify\.com\/(track|album|playlist|episode)\
* Twitch embed regex
*/
export const TwitchRegex = /twitch.tv\/([a-z0-9_]+$)/i;
/**
* Apple Music embed regex
*/
export const AppleMusicRegex =
/music\.apple\.com\/([a-z]{2}\/)?(?:album|playlist)\/[\w\d-]+\/([.a-zA-Z0-9-]+)(?:\?i=\d+)?/i;