From 0bd2136dd0b1cf039918e08646e2ac267d5033bf Mon Sep 17 00:00:00 2001 From: Matchu Date: Mon, 21 Sep 2020 06:52:36 -0700 Subject: [PATCH] test case for HTML5 animations --- api/assetProxy.js | 2 +- public/animate-test.html | 83 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 public/animate-test.html diff --git a/api/assetProxy.js b/api/assetProxy.js index eb41b7b..27002c1 100644 --- a/api/assetProxy.js +++ b/api/assetProxy.js @@ -6,7 +6,7 @@ const streamPipeline = util.promisify(stream.pipeline); const VALID_URL_PATTERNS = [ /^http:\/\/images\.neopets\.com\/items\/[a-zA-Z0-9_ -]+\.gif$/, - /^http:\/\/images\.neopets\.com\/cp\/(bio|items)\/data\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[a-f0-9_]+\/[0-9]+\.svg$/, + /^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)$/, /^http:\/\/images\.neopets\.com\/cp\/(bio|items)\/swf\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[a-f0-9_]+\.swf$/, ]; diff --git a/public/animate-test.html b/public/animate-test.html new file mode 100644 index 0000000..8c0c0de --- /dev/null +++ b/public/animate-test.html @@ -0,0 +1,83 @@ + + + + + + + + +
+
+
+ +
+
+ + +