check in user options skips arrays

This commit is contained in:
Myryk 2024-06-06 01:44:13 +02:00
parent f98f641000
commit 9cac7c91a4

View file

@ -198,7 +198,7 @@ function overrideConfigRecursive(userOverrides, configOptions = {}, check = true
if (configOptions[key] === undefined && check) {
optionsOkay = false;
}
else if (typeof value === 'object') {
else if (typeof value === 'object' && !(value instanceof Array)) {
if (key === "substitutions" || key === "regexSubstitutions") {
overrideConfigRecursive(value, configOptions[key], false);
} else overrideConfigRecursive(value, configOptions[key]);