ActivityPub-federated video streaming platform using P2P directly in your web browser
Improve regexp performance
Chocobozzz577312864739
diff --git a/server/middlewares/validators/oembed.ts b/server/middlewares/validators/oembed.tsindex 96c8adc99c..cbd645a719 100644--- a/server/middlewares/validators/oembed.ts+++ b/server/middlewares/validators/oembed.ts@@ -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