diff --git a/Customizations/Questions/bike/PumpValves.ts b/Customizations/Questions/bike/PumpValves.ts index 7825839..e8f63e8 100644 --- a/Customizations/Questions/bike/PumpValves.ts +++ b/Customizations/Questions/bike/PumpValves.ts @@ -3,14 +3,15 @@ import Translations from "../../../UI/i18n/Translations"; import {TagRenderingOptions} from "../../TagRenderingOptions"; -export default class PumpValves extends TagRenderingOptions{ +export default class +PumpValves extends TagRenderingOptions{ constructor() { const to = Translations.t.cyclofix.station.valves super({ question: to.question, mappings: [ { - k: new Tag("valves", " sclaverand;schrader;dunlop"), + k: new Tag("valves", "sclaverand;schrader;dunlop"), txt: to.default }, {k: new Tag("valves", "dunlop"), txt: to.dunlop}, diff --git a/Logic/Osm/Changes.ts b/Logic/Osm/Changes.ts index edb6b79..85831d6 100644 --- a/Logic/Osm/Changes.ts +++ b/Logic/Osm/Changes.ts @@ -63,6 +63,13 @@ export class Changes { console.log("Invalid value for ",key); return; } + + if(key.startsWith(" ") || value.startsWith(" ") || value.endsWith(" ") || key.endsWith(" ")){ + console.warn("Tag starts with or ends with a space - trimming anyway") + } + + key = key.trim(); + value = value.trim(); const eventSource = State.state.allElements.getElement(elementId);