mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
Keep possibly brand names just initials
This commit is contained in:
21
js/entity/FormatTextEntity.js
Normal file
21
js/entity/FormatTextEntity.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import IEntity from "./IEntity"
|
||||
import InvariantTextEntity from "./InvariantTextEntity"
|
||||
import LocalizedTextEntity from "./LocalizedTextEntity"
|
||||
import UnionType from "./UnionType"
|
||||
|
||||
export default class FormatTextEntity extends IEntity {
|
||||
|
||||
static lookbehind = "LOCGEN_FORMAT_NAMED"
|
||||
static attributes = {
|
||||
value: [new UnionType(LocalizedTextEntity, InvariantTextEntity, FormatTextEntity)],
|
||||
}
|
||||
|
||||
static {
|
||||
this.cleanupAttributes(this.attributes)
|
||||
}
|
||||
|
||||
constructor(values) {
|
||||
super(values)
|
||||
/** @type {String} */ this.value
|
||||
}
|
||||
} 1
|
||||
Reference in New Issue
Block a user