Fix common misspelling of 'enableImproveAccuracy', see #1928

This commit is contained in:
Pieter Vander Vennet 2024-04-28 11:03:26 +02:00
parent 6c12041f73
commit 8e70ecce8a
13 changed files with 18 additions and 12 deletions

View file

@ -33,6 +33,12 @@ export class UpdateLegacyLayer extends DesugaringStep<
delete config["overpassTags"]
}
if(config.allowMove?.["enableImproveAccuraccy"]){
// Fix common misspelling: 'accuracy' is often typo'ed as 'accuraCCy'
config.allowMove["enableImproveAccuracy"] = config.allowMove["enableImproveAccuraccy"]
delete config.allowMove["enableImproveAccuraccy"]
}
for (const preset of config.presets ?? []) {
const preciseInput = preset["preciseInput"]
if (typeof preciseInput === "boolean") {