From b6a1127b606e359ac852eac44e8d3d82c2a0c849 Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 7 Nov 2024 11:09:55 -0600 Subject: [PATCH] Website: update custom hook (#23618) Changes: - Updated sails.LOOKS_LIKE_ASSET_RX --- website/api/hooks/custom/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/api/hooks/custom/index.js b/website/api/hooks/custom/index.js index a7755c7bc3..c80fc58071 100644 --- a/website/api/hooks/custom/index.js +++ b/website/api/hooks/custom/index.js @@ -73,7 +73,7 @@ will be disabled and/or hidden in the UI. // Override the default sails.LOOKS_LIKE_ASSET_RX with a regex that does not match paths starting with '/release/'. // Otherwise, our release blog posts are treated as assets because they contain periods in their URL (e.g., fleetdm.com/releases/fleet-4.29.0) - sails.LOOKS_LIKE_ASSET_RX = /^(?![\/releases\/|\/announcements\/|\/success-stories\/|\/securing\/|\/engineering\/|\/podcasts\/].*$)[^?]*\/[^?\/]+\.[^?\/]+(\?.*)?$/; + sails.LOOKS_LIKE_ASSET_RX = /^(?!\/releases\/|\/announcements\/|\/success-stories\/|\/securing\/|\/engineering\/|\/podcasts\/*$)[^?]*\/[^?\/]+\.[^?\/]+(\?.*)?$/; // After "sails-hook-organics" finishes initializing, configure Stripe // and Sendgrid packs with any available credentials.