From fc5f249fd3560d3c4902cb5fe55822e1aa45c6bd Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 10 Mar 2026 10:49:42 -0500 Subject: [PATCH] Website: Update @fleetdm.com email check in build-static-content script (#41348) Changes: - Updated the `@fleetdm.com` email address check in the build-static-content to exclude support@ --- website/scripts/build-static-content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/scripts/build-static-content.js b/website/scripts/build-static-content.js index b1ea3788aa..64bfd3a4be 100644 --- a/website/scripts/build-static-content.js +++ b/website/scripts/build-static-content.js @@ -407,7 +407,7 @@ module.exports = { let mdString = await sails.helpers.fs.read(pageSourcePath); // Look for non example @fleetdm.com email addresses in the Markdown string, if any are found, throw an error. - if(mdString.match(/[A-Z0-9._%+-]+@fleetdm\.com/gi)) { + if(mdString.match(/\b(?!support@fleetdm\.com\b)[A-Z0-9._%+-]+@fleetdm\.com\b/gi)) { throw new Error(`A Markdown file (${pageSourcePath}) contains a @fleetdm.com email address. To resolve this error, remove the email address in that file or change it to be an @example.com email address and try running this script again.`); } // Look for multi-line HTML comments starting after lists without a blank newline. (The opening comment block is parsed as part of the list item preceeding it, and the closing block will be parsed as a paragraph)