forked from MapComplete/MapComplete
Small fix: restore special components
This commit is contained in:
parent
e1d7b256f9
commit
fbdd36b270
2 changed files with 4 additions and 4 deletions
|
@ -54,7 +54,7 @@ export class SubstitutedTranslation extends UIElement {
|
|||
for (const key in tags) {
|
||||
txt = txt.replace(new RegExp("{" + key + "}", "g"), tags[key])
|
||||
}
|
||||
return txt.replace(/{.*}/g, "");
|
||||
return txt;
|
||||
}
|
||||
|
||||
private static GenerateMap() {
|
||||
|
@ -117,8 +117,8 @@ export class SubstitutedTranslation extends UIElement {
|
|||
}
|
||||
}
|
||||
|
||||
// IF we end up here, no changes have to be made
|
||||
return [new FixedUiElement(template)];
|
||||
// IF we end up here, no changes have to be made - except to remove any resting {}
|
||||
return [new FixedUiElement(template.replace(/{.*}/g, ""))];
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue