Improve regexp performance
This commit is contained in:
parent
1db57e6f96
commit
5773128647
|
@ -28,7 +28,7 @@ function buildUrls (paths: string[]) {
|
||||||
const startPlaylistURLs = buildUrls(playlistPaths)
|
const startPlaylistURLs = buildUrls(playlistPaths)
|
||||||
const startVideoURLs = buildUrls(videoPaths)
|
const startVideoURLs = buildUrls(videoPaths)
|
||||||
|
|
||||||
const watchRegex = /([^/]+)$/
|
const watchRegex = /\/([^/]+)$/
|
||||||
const isURLOptions = {
|
const isURLOptions = {
|
||||||
require_host: true,
|
require_host: true,
|
||||||
require_tld: true
|
require_tld: true
|
||||||
|
|
Loading…
Reference in New Issue