From fa1b9344da5dafdcb39efac483599e0ae2eafcae Mon Sep 17 00:00:00 2001 From: admin-it-jupiterone Date: Fri, 8 May 2026 16:31:51 -0400 Subject: [PATCH] Potential fix for code scanning alert no. 8: Inefficient regular expression Testing GitHub code scanning using their AI to generate fixes, this may be old, stale, or not applicable. Please review and let me know. Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- docs/site/home/js/prism.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/site/home/js/prism.js b/docs/site/home/js/prism.js index c37259f8d49..9e2dd665ba9 100644 --- a/docs/site/home/js/prism.js +++ b/docs/site/home/js/prism.js @@ -2069,7 +2069,7 @@ Prism.languages.js = Prism.languages.javascript; inside: createInterpolationInside(mInterpolation, mInterpolationRound), }, { - pattern: re(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source, [sInterpolation]), + pattern: re(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{<]|<(?!<0>>))*"/.source, [sInterpolation]), lookbehind: true, greedy: true, inside: createInterpolationInside(sInterpolation, sInterpolationRound),