forked from MapComplete/MapComplete
Add a big update to the charging station theme
This commit is contained in:
parent
03d801733b
commit
96c11badaf
17 changed files with 2035 additions and 343 deletions
3
Utils.ts
3
Utils.ts
|
@ -173,8 +173,9 @@ export class Utils {
|
|||
if (!tags.hasOwnProperty(key)) {
|
||||
continue
|
||||
}
|
||||
txt = txt.replace(new RegExp("{" + key + "}", "g"), tags[key])
|
||||
txt = txt.replace(new RegExp("{" + key + "}", "g"), tags[key] ?? "")
|
||||
}
|
||||
txt = txt.replace(new RegExp('{.*}', "g"), "")
|
||||
return txt;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue