Allow _ in preferences again, version bump

This commit is contained in:
Pieter Vander Vennet 2021-06-22 14:29:22 +02:00
parent aaaf876257
commit c6e4ebc347
3 changed files with 2 additions and 3 deletions

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";
}