forked from MapComplete/MapComplete
Add HTML rendering options to icons
This commit is contained in:
parent
b3f02572d5
commit
4d5c250f8f
5 changed files with 77 additions and 34 deletions
|
|
@ -18,11 +18,11 @@ export default class SubstitutingTag implements TagsFilter {
|
|||
this._value = value;
|
||||
}
|
||||
|
||||
private static substituteString(template: string, dict: any): string {
|
||||
public static substituteString(template: string, dict: any): string {
|
||||
for (const k in dict) {
|
||||
template = template.replace(new RegExp("\\{" + k + "\\}", 'g'), dict[k])
|
||||
}
|
||||
return template;
|
||||
return template.replace(/{.*}/g, "");
|
||||
}
|
||||
|
||||
asHumanString(linkToWiki: boolean, shorten: boolean, properties) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue