From 7373a46bd74d401956b33046fe32c41f3b85ecf4 Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 3 Aug 2022 15:12:42 -0700 Subject: [PATCH] Tweak the pattern for S3 asset URLs Dice makes a good point! This is slightly clearer about what the valid set of sizes are! Why the hell not be slightly clearer! :3 --- pages/api/outfitImage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/outfitImage.js b/pages/api/outfitImage.js index c8bd575..4ce1d35 100644 --- a/pages/api/outfitImage.js +++ b/pages/api/outfitImage.js @@ -51,7 +51,7 @@ import getVisibleLayers, { // of the following patterns: const VALID_LAYER_URLS = [ // Some layers are converted from SWF to PNG by Classic DTI, living on S3. - /^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|600)x(150|300|600)\.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]+\/(150x150|300x300|600x600)\.png(\?[a-zA-Z0-9_-]+)?$/, // Some layers are converted to PNG or SVG by Neopets themselves, extracted // from the manifest file.