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>
This commit is contained in:
mr. m
2025-05-14 10:14:16 +02:00
committed by GitHub
parent e53a95e297
commit 937408f3f6

View File

@@ -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 (