mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 04:39:58 +00:00
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";
|
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;
|
const imageRegex = /src="(https:\/\/i\.pinimg\.com\/.*\.(jpg|gif))"/g;
|
||||||
|
|
||||||
export default async function(o) {
|
export default async function(o) {
|
||||||
|
|
Loading…
Reference in a new issue