Skip to content

Commit

Permalink
fix: fix add source regexp for twitter space
Browse files Browse the repository at this point in the history
  • Loading branch information
Расул authored and Расул committed Sep 20, 2023
1 parent 4cf8984 commit 3e6c82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AddNodeModal/SourceUrl/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Props> = ({ setValue, startTime }) => {
const [enableTimestamps, setEnableTimestamps] = useState(false)
Expand Down

0 comments on commit 3e6c82f

Please sign in to comment.