fix: 🐛
This commit is contained in:
parent
6eb3bccd38
commit
0444c887f4
3 changed files with 92 additions and 97 deletions
|
|
@ -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'
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue