Add another forbidden character

This commit is contained in:
pietervdvn 2021-06-11 22:53:34 +02:00
parent b864d44fda
commit 3fe581e4af

View file

@ -97,7 +97,7 @@ export class OsmPreferences {
public GetPreference(key: string, prefix: string = "mapcomplete-"): UIEventSource<string> {
key = prefix + key;
key = key.replace(/[:\\\/"' {}.%]/g, '')
key = key.replace(/[:\\\/"' {}.%_]/g, '')
if (key.length >= 255) {
throw "Preferences: key length to big";
}