Arrays in user options don't throw an error anymore (#586)

This commit is contained in:
end-4
2024-06-06 17:24:24 +07:00
committed by GitHub
@@ -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]);