From 937408f3f61ecf0ef5af8e1d82ac6435de07dc39 Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mauro-balades@users.noreply.github.com> Date: Wed, 14 May 2025 10:14:16 +0200 Subject: [PATCH] Potential fix for code scanning alert no. 18: Overly permissive regular expression range Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: mr. m <91018726+mauro-balades@users.noreply.github.com> --- src/zen/mods/ZenThemesCommon.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zen/mods/ZenThemesCommon.mjs b/src/zen/mods/ZenThemesCommon.mjs index 82632939a..14ce3593d 100644 --- a/src/zen/mods/ZenThemesCommon.mjs +++ b/src/zen/mods/ZenThemesCommon.mjs @@ -76,7 +76,7 @@ var ZenThemesCommon = { for (let [entry, label] of Object.entries(preferences)) { const [_, negation = '', os = '', property] = - /(!?)(?:(macos|windows|linux):)?([A-z0-9-_.]+)/g.exec(entry); + /(!?)(?:(macos|windows|linux):)?([A-Za-z0-9-_.]+)/g.exec(entry); const isNegation = negation === '!'; if (