From 3fe581e4af0ad1ce0c4900d62c7919e58190c27c Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Fri, 11 Jun 2021 22:53:34 +0200 Subject: [PATCH] Add another forbidden character --- Logic/Osm/OsmPreferences.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Logic/Osm/OsmPreferences.ts b/Logic/Osm/OsmPreferences.ts index bff50eae6..cd688b89c 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"; }