Fix crash with pxtwitter.com .mp4/.jpg links

This commit is contained in:
dangered wolf 2022-08-16 19:57:07 -04:00
parent 37bf59e039
commit 5cf7b61f45
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -33,7 +33,7 @@ const statusRequest = async (
if (
Constants.DEPRECATED_DOMAIN_LIST.includes(url.hostname) &&
BigInt(id) > Constants.DEPRECATED_DOMAIN_EPOCH
BigInt(id?.match(/\d{2,20}/g)?.[0] || 0) > Constants.DEPRECATED_DOMAIN_EPOCH
) {
console.log('Request to deprecated domain');
flags.deprecated = true;