diff options
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/src/components/Summary.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/components/Summary.tsx b/frontend/src/components/Summary.tsx index 14b02ac..4bcaa6a 100644 --- a/frontend/src/components/Summary.tsx +++ b/frontend/src/components/Summary.tsx | |||
| @@ -29,7 +29,7 @@ const Summary: React.FC<SummaryProps> = ({ selectedRun, setSelectedRun, data }) | |||
| 29 | 29 | ||
| 30 | function _get_youtube_id(url: string): string { | 30 | function _get_youtube_id(url: string): string { |
| 31 | const urlArray = url.split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/); | 31 | const urlArray = url.split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/); |
| 32 | return (urlArray[2] !== undefined) ? urlArray[2].split(/[^0-9a-z_]/i)[0] : urlArray[0]; | 32 | return (urlArray[2] !== undefined) ? urlArray[2].split(/[^0-9a-z_-]/i)[0] : urlArray[0]; |
| 33 | }; | 33 | }; |
| 34 | 34 | ||
| 35 | function _category_change() { | 35 | function _category_change() { |