File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ import { isMediaStream, isBlobUrl } from './utils'
3
3
export const MATCH_URL_YOUTUBE = / (?: y o u t u \. b e \/ | y o u t u b e (?: - n o c o o k i e | e d u c a t i o n ) ? \. c o m \/ (?: e m b e d \/ | v \/ | w a t c h \/ | w a t c h \? v = | w a t c h \? .+ & v = | s h o r t s \/ | l i v e \/ ) ) ( ( \w | - ) { 11 } ) | y o u t u b e \. c o m \/ p l a y l i s t \? l i s t = | y o u t u b e \. c o m \/ u s e r \/ /
4
4
export const MATCH_URL_SOUNDCLOUD = / (?: s o u n d c l o u d \. c o m | s n d \. s c ) \/ [ ^ . ] + $ /
5
5
export const MATCH_URL_VIMEO = / v i m e o \. c o m \/ (? ! p r o g r e s s i v e _ r e d i r e c t ) .+ /
6
- export const MATCH_URL_MUX = / s t r e a m \. m u x \. c o m \/ ( \w + ) /
6
+ // Match Mux m3u8 URLs without the extension so users can use hls.js with Mux by adding the `.m3u8` extension. https://regexr.com/7um5f
7
+ export const MATCH_URL_MUX = / s t r e a m \. m u x \. c o m \/ (? ! \w + \. m 3 u 8 ) ( \w + ) /
7
8
export const MATCH_URL_FACEBOOK = / ^ h t t p s ? : \/ \/ ( w w w \. ) ? f a c e b o o k \. c o m .* \/ ( v i d e o ( s ) ? | w a t c h | s t o r y ) ( \. p h p ? | \/ ) .+ $ /
8
9
export const MATCH_URL_FACEBOOK_WATCH = / ^ h t t p s ? : \/ \/ f b \. w a t c h \/ .+ $ /
9
10
export const MATCH_URL_STREAMABLE = / s t r e a m a b l e \. c o m \/ ( [ a - z 0 - 9 ] + ) $ /
You can’t perform that action at this time.
0 commit comments