mirror of https://github.com/FreeTubeApp/FreeTube
Simplify regex
Co-authored-by: PikachuEXE <pikachuexe@gmail.com>
This commit is contained in:
parent
5ac1eab36c
commit
76f0d7512a
|
@ -375,7 +375,7 @@ const actions = {
|
|||
let urlType = 'unknown'
|
||||
|
||||
const channelPattern =
|
||||
/^\/(?:c\/|channel\/|user\/)?([^/]+)(?:\/join|\/featured|\/videos|\/playlists|\/about|\/community|\/channels)?\/?$/
|
||||
/^\/(?:(c|channel|user)\/)?([^/]+)(?:\/(join|featured|videos|playlists|about|community|channels))?\/?$/
|
||||
|
||||
const typePatterns = new Map([
|
||||
['playlist', /^\/playlist\/?$/],
|
||||
|
|
Loading…
Reference in New Issue