From 6726f5c48d71858879ec9d5e3dbea869ca05b9c1 Mon Sep 17 00:00:00 2001 From: Rassl Date: Wed, 20 Sep 2023 18:17:35 +0300 Subject: [PATCH] fix: fix add source regexp for twitter space (#421) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Расул --- src/components/AddNodeModal/SourceUrl/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AddNodeModal/SourceUrl/index.tsx b/src/components/AddNodeModal/SourceUrl/index.tsx index 334c5125a..6a233df3e 100644 --- a/src/components/AddNodeModal/SourceUrl/index.tsx +++ b/src/components/AddNodeModal/SourceUrl/index.tsx @@ -23,7 +23,7 @@ const tagRule = { const timeRegex = /^\d{2}:\d{2}:\d{2}$/ const twitterOrYoutubeRegexOrMp3 = - /^(?:(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)[\w-]{11}(?:\S*)?|(?:https?:\/\/)?(?:www\.)?twitter\.com\/i\/spaces\/\d+(?:\?|$)|.+\.mp3)$/i + /^(?:(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)[\w-]{11}(?:\S*)?|(?:https?:\/\/)?(?:www\.)?twitter\.com\/i\/spaces\/\d+.*$|.+\.mp3)$/i export const SourceUrl: FC = ({ setValue, startTime }) => { const [enableTimestamps, setEnableTimestamps] = useState(false)