From 2c043adbe0d5bb3e096d5f1012186dc99722671f Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 13 May 2021 01:15:17 -0700 Subject: [PATCH] Support new Fastly S3 domain in outfit images Oops, I forgot to grep outside `src` for this, lol! I'll keep the S3 domain support for now, because it's still fine to accept and some clients might be on old code, whatever! --- api/outfitImage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/outfitImage.js b/api/outfitImage.js index 09b4b2d..479d37b 100644 --- a/api/outfitImage.js +++ b/api/outfitImage.js @@ -10,7 +10,7 @@ const beeline = require("honeycomb-beeline")({ const { renderOutfitImage } = require("../src/server/outfit-images"); const VALID_LAYER_URLS = [ - /^https:\/\/impress-asset-images\.s3\.amazonaws\.com\/(biology|object)\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[0-9]+\/(150|300)x(150|300)\.png(\?[a-zA-Z0-9_-]+)?$/, + /^https:\/\/(impress-asset-images\.openneo\.net|impress-asset-images\.s3\.amazonaws\.com)\/(biology|object)\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[0-9]+\/(150|300)x(150|300)\.png(\?[a-zA-Z0-9_-]+)?$/, /^http:\/\/images\.neopets\.com\/cp\/(bio|object|items)\/data\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+\.(svg|png)(\?.*)?$/, ];