aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/validators/oembed.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/oembed.ts b/server/middlewares/validators/oembed.ts
index 96c8adc99..cbd645a71 100644
--- a/server/middlewares/validators/oembed.ts
+++ b/server/middlewares/validators/oembed.ts
@@ -28,7 +28,7 @@ function buildUrls (paths: string[]) {
28const startPlaylistURLs = buildUrls(playlistPaths) 28const startPlaylistURLs = buildUrls(playlistPaths)
29const startVideoURLs = buildUrls(videoPaths) 29const startVideoURLs = buildUrls(videoPaths)
30 30
31const watchRegex = /([^/]+)$/ 31const watchRegex = /\/([^/]+)$/
32const isURLOptions = { 32const isURLOptions = {
33 require_host: true, 33 require_host: true,
34 require_tld: true 34 require_tld: true