Improve regexp performance
This commit is contained in:
parent
1db57e6f96
commit
5773128647
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue