fix: 🐛

This commit is contained in:
codytseng 2025-10-09 23:18:20 +08:00
parent 6eb3bccd38
commit 0444c887f4
3 changed files with 92 additions and 97 deletions

View file

@ -94,7 +94,7 @@ export const EmbeddedUrlParser: TContentParser = (content: string) => {
type = 'image'
} else if (isMedia(url)) {
type = 'media'
} else if (YOUTUBE_URL_REGEX.test(url)) {
} else if (url.match(YOUTUBE_URL_REGEX)) {
type = 'youtube'
}