mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Website: update sails.LOOKS_LIKE_ASSET_RX (#23603)
Closes: https://github.com/fleetdm/fleet/issues/23598 Changes: - Updated `sails.LOOKS_LIKE_ASSET_RX` to not match URLs for articles.
This commit is contained in:
parent
06a4c86b3b
commit
581a2f7a53
1 changed files with 1 additions and 1 deletions
2
website/api/hooks/custom/index.js
vendored
2
website/api/hooks/custom/index.js
vendored
|
|
@ -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\/.*$)[^?]*\/[^?\/]+\.[^?\/]+(\?.*)?$/;
|
||||
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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue