Improve regexp performance

This commit is contained in:
Chocobozzz 2021-10-11 14:37:35 +02:00
parent 1db57e6f96
commit 5773128647
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -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