Merge pull request #8279 from zen-browser/alert-autofix-18

Potential fix for code scanning alert no. 18: Overly permissive regular expression range
This commit is contained in:
mr. m
2025-05-14 10:14:55 +02:00
committed by GitHub

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 (