1
0
Fork 0

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

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