Verified Commit 57731286 authored by Chocobozzz's avatar Chocobozzz
Browse files

Improve regexp performance

parent 1db57e6f
......@@ -28,7 +28,7 @@ function buildUrls (paths: string[]) {
const startPlaylistURLs = buildUrls(playlistPaths)
const startVideoURLs = buildUrls(videoPaths)
const watchRegex = /([^/]+)$/
const watchRegex = /\/([^/]+)$/
const isURLOptions = {
require_host: true,
require_tld: true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment