More tests and fixed

This commit is contained in:
barsdeveloper
2024-06-03 12:42:42 +02:00
parent 8fed17b20f
commit 1a8636bb5d
18 changed files with 484 additions and 433 deletions

View File

@@ -24,11 +24,11 @@ export default class LocalizedTextEntity extends IPrintableEntity {
+ String.raw`\)`,
"m"
)).map(({ groups: { namespace, key, value, trailing } }) => {
const self = trailing ? this.flagTrailing() : this
return new self({
return new this({
namespace: new (this.attributes.namespace)(Utility.unescapeString(namespace)),
key: new (this.attributes.namespace)(Utility.unescapeString(key)),
value: new (this.attributes.namespace)(Utility.unescapeString(value)),
trailing: trailing !== undefined,
})
}).label("LocalizedTextEntity")