From 479e14778de6822eff4ee9421ce2db5120e3e60b Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Sat, 6 Jul 2024 08:55:48 +0000 Subject: [PATCH] services/pinterest: stricter hostname check on video regex --- src/modules/processing/services/pinterest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/processing/services/pinterest.js b/src/modules/processing/services/pinterest.js index f823d6bb..3e9e1d32 100644 --- a/src/modules/processing/services/pinterest.js +++ b/src/modules/processing/services/pinterest.js @@ -1,6 +1,6 @@ import { genericUserAgent } from "../../config.js"; -const videoRegex = /"url":"(https:\/\/v1.pinimg.com\/videos\/.*?)"/g; +const videoRegex = /"url":"(https:\/\/v1\.pinimg\.com\/videos\/.*?)"/g; const imageRegex = /src="(https:\/\/i\.pinimg\.com\/.*\.(jpg|gif))"/g; export default async function(o) {