Optimizing trees theme and clustering

This commit is contained in:
Pieter Vander Vennet 2021-10-15 18:48:33 +02:00
parent 5ac035be20
commit 8fca373437
11 changed files with 125 additions and 67 deletions

View file

@ -168,7 +168,12 @@ export class Utils {
if (!tags.hasOwnProperty(key)) {
continue
}
try{
txt = txt.replace(new RegExp("{" + key + "}", "g"), tags[key] ?? "")
}catch(e){
console.error("WEIRD" , e)
throw e
}
}
txt = txt.replace(new RegExp('{.*}', "g"), "")
return txt;