From 76f0d7512a11d57598bda6fd0142767aec6218af Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Thu, 7 Oct 2021 06:47:37 -0400 Subject: [PATCH] Simplify regex Co-authored-by: PikachuEXE --- src/renderer/store/modules/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/store/modules/utils.js b/src/renderer/store/modules/utils.js index 40c60227c..644b837ed 100644 --- a/src/renderer/store/modules/utils.js +++ b/src/renderer/store/modules/utils.js @@ -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\/?$/],