fix: loosen newXMajor migration

This commit is contained in:
Rhys Arkins 2021-02-03 16:08:35 +01:00
parent ee178df01a
commit 83a511a08c

View file

@ -491,11 +491,7 @@ export function migrateConfig(
if (subMigrate.isMigrated) {
migratedConfig[key] = subMigrate.migratedConfig;
}
} else if (
key.startsWith('commitMessage') &&
is.string(val) &&
(val.includes('currentVersion') || val.includes('newVersion'))
) {
} else if (key.startsWith('commitMessage') && is.string(val)) {
migratedConfig[key] = val
.replace(/currentVersion/g, 'currentValue')
.replace(/newVersion/g, 'newValue')