From ecab8fdc2cd5c026f82f0b9a156af0d2cd3f8420 Mon Sep 17 00:00:00 2001 From: Lars Trieloff Date: Thu, 27 May 2021 11:30:40 +0200 Subject: [PATCH] fix(block): allow .rum path see https://github.com/adobe/theblog/pull/682#issuecomment-849460506 --- src/rgx/block.js | 2 +- test/fixtures/allowed-paths.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rgx/block.js b/src/rgx/block.js index e4bd3eb6..c6952722 100644 --- a/src/rgx/block.js +++ b/src/rgx/block.js @@ -14,7 +14,7 @@ module.exports = [ /_debugbar/, /.+\.axd/, /.+\.log$/, - /(?!\/\.well-known)\/\./, + /(?!\/\.(well-known|rum))\/\./, /(Homestead|circle|_?config)\.ya?ml$/, /[()'"]/, // braces and escapes /[Tt]hank.*\.txt$/, diff --git a/test/fixtures/allowed-paths.txt b/test/fixtures/allowed-paths.txt index 5f8b7e17..f9e53b21 100644 --- a/test/fixtures/allowed-paths.txt +++ b/test/fixtures/allowed-paths.txt @@ -868,3 +868,5 @@ /experience-cloud/wp-content/uploads/2017/06/Image-Five-Ways-to-Make-Sure-Your-Distributors-Love-You-%e2%80%94-The-Benefits-of-Brand-Portals-in-Manufacturer-Distributor-Relationships--e1496464968216-1200x672.jpeg /experience-cloud/wp-content/uploads/2040/09/hero-image-Adobe-Enhances-Retailers%E2%80%99-Workflows-to-Power-Personalization-e1506356370834-1200x678.jpeg /experience-cloud/wp-content/uploads/2050/06/Image-How-NBC-Sports-Delivered-the-Most-Watched-Digital-Event-in-History.-e1496286896161.png +/.rum/1 +/.rum/100 \ No newline at end of file