forked from MapComplete/MapComplete
Allow _ in preferences again, version bump
This commit is contained in:
parent
aaaf876257
commit
c6e4ebc347
3 changed files with 2 additions and 3 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…
Add table
Add a link
Reference in a new issue