From 59ae70d417ba12c42ba6a7b99747d0ff62c059ec Mon Sep 17 00:00:00 2001 From: Matchu Date: Mon, 12 Oct 2020 21:13:35 -0700 Subject: [PATCH] add cpn links to asset proxy, for old impress --- api/assetProxy.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/assetProxy.js b/api/assetProxy.js index 4b1cceb..115e965 100644 --- a/api/assetProxy.js +++ b/api/assetProxy.js @@ -9,9 +9,10 @@ const VALID_URL_PATTERNS = [ /^http:\/\/images\.neopets\.com\/cp\/(bio|items)\/data\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[a-f0-9_]+\/[a-zA-Z0-9_ \-\/]+\.(svg|png|js)(\?[0-9]*)?$/, /^http:\/\/images\.neopets\.com\/cp\/(bio|items)\/swf\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[a-f0-9_]+\.swf$/, - // This one isn't actually used Impress 2020 - we added a cheap hack to old - // Impress to upgrade images to use the Impress 2020 asset proxy 😅 + // These ones aren't actually used Impress 2020 - we added a cheap hack to + // old Impress to upgrade images to use the Impress 2020 asset proxy 😅 /^http:\/\/pets\.neopets\.com\/cp\/[a-zA-Z90-9]+\/[0-9]+\/[0-9]+\.png$/, + /^http:\/\/pets\.neopets\.com\/cpn\/[a-zA-Z90-9_]+\/[0-9]+\/[0-9]+\.png$/, ]; export default async (req, res) => {