services/pinterest: stricter hostname check on video regex
This commit is contained in:
parent
4daeaa3107
commit
479e14778d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue