diff --git a/src/components/note/note-contents.tsx b/src/components/note/note-contents.tsx index 84e36aff1..57ba40c39 100644 --- a/src/components/note/note-contents.tsx +++ b/src/components/note/note-contents.tsx @@ -28,8 +28,7 @@ const embeds: { }, // Youtube Video { - regexp: - /((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu\.be))(\/(?:[\w\-]+\?v=|embed\/|v\/)?)([\w\-]+)(\S+)?/im, + regexp: /https?:\/\/((?:www|m)\.)?((?:youtube\.com|youtu\.be))(\/(?:[\w\-]+\?v=|embed\/|v\/)?)([\w\-]+)(\S+)?/im, render: (match) => ( + ), + }, // Tidal { regexp: /https?:\/\/tidal\.com(\/browse)?\/track\/(\d+)/im,