From 5065fae925e096d972633709b343a390358afcec Mon Sep 17 00:00:00 2001 From: FrogTheFrog Date: Fri, 27 Oct 2017 12:30:03 +0300 Subject: [PATCH] fixed configuration migration bug from v2.0.0 --- src/renderer/modifiers/user-configuration.modifier.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/modifiers/user-configuration.modifier.ts b/src/renderer/modifiers/user-configuration.modifier.ts index 021eeb481f..8060434575 100644 --- a/src/renderer/modifiers/user-configuration.modifier.ts +++ b/src/renderer/modifiers/user-configuration.modifier.ts @@ -10,6 +10,7 @@ export const userConfiguration: JsonValidatorModifier = { method: (oldValue) => oldValue === undefined ? false : !!!oldValue, oldValuePath: 'enabled' }, + 'parserType': { method: (oldValue) => (typeof oldValue === 'string' && /glob-regex/i.test(oldValue)) ? 'Glob-regex' : oldValue }, 'executableArgs': { method: replaceVariables_undefined }, 'onlineImageQueries': { method: replaceVariables_undefined }, 'localImages': { method: replaceVariables_undefined },