services/pinterest: stricter hostname check on video regex

This commit is contained in:
dumbmoron 2024-07-06 08:55:48 +00:00
parent 4daeaa3107
commit 479e14778d
No known key found for this signature in database

View file

@ -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) {