forked from MapComplete/MapComplete
Add another forbidden character
This commit is contained in:
parent
b864d44fda
commit
3fe581e4af
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue