From 3e6c82fbc5b7d59b1b161a76b4b86868936dc866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B0=D1=81=D1=83=D0=BB?= Date: Wed, 20 Sep 2023 12:52:54 +0300 Subject: [PATCH] fix: fix add source regexp for twitter space --- 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)