mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
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 startVideoURLs = buildUrls(videoPaths)
|
||||
|
||||
const watchRegex = /([^/]+)$/
|
||||
const watchRegex = /\/([^/]+)$/
|
||||
const isURLOptions = {
|
||||
require_host: true,
|
||||
require_tld: true
|
||||
|
Loading…
Reference in New Issue
Block a user