From c6e4ebc347bd88b01d257c80c7ae24ec0bc08b67 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Tue, 22 Jun 2021 14:29:22 +0200 Subject: [PATCH] Allow _ in preferences again, version bump --- Logic/Osm/OsmPreferences.ts | 2 +- Models/Constants.ts | 2 +- preferences.ts | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Logic/Osm/OsmPreferences.ts b/Logic/Osm/OsmPreferences.ts index cd688b89c7..bff50eae60 100644 --- a/Logic/Osm/OsmPreferences.ts +++ b/Logic/Osm/OsmPreferences.ts @@ -97,7 +97,7 @@ export class OsmPreferences { public GetPreference(key: string, prefix: string = "mapcomplete-"): UIEventSource { key = prefix + key; - key = key.replace(/[:\\\/"' {}.%_]/g, '') + key = key.replace(/[:\\\/"' {}.%]/g, '') if (key.length >= 255) { throw "Preferences: key length to big"; } diff --git a/Models/Constants.ts b/Models/Constants.ts index e572076d86..4bda2a0c32 100644 --- a/Models/Constants.ts +++ b/Models/Constants.ts @@ -2,7 +2,7 @@ import { Utils } from "../Utils"; export default class Constants { - public static vNumber = "0.8.0a"; + public static vNumber = "0.8.0b"; // The user journey states thresholds when a new feature gets unlocked public static userJourney = { diff --git a/preferences.ts b/preferences.ts index 4b1dce30ab..1c1773a143 100644 --- a/preferences.ts +++ b/preferences.ts @@ -3,7 +3,6 @@ import Combine from "./UI/Base/Combine"; import {Button} from "./UI/Base/Button"; import {TextField} from "./UI/Input/TextField"; import {FixedUiElement} from "./UI/Base/FixedUiElement"; -import {UIElement} from "./UI/UIElement"; import {UIEventSource} from "./Logic/UIEventSource"; import {Utils} from "./Utils"; import {SubtleButton} from "./UI/Base/SubtleButton";