mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-12-11 12:09:35 +01:00
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
Block a user