mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-06 23:57:30 +08:00
Minor fixes
This commit is contained in:
@@ -72,6 +72,10 @@ export default class PinElement extends IElement {
|
||||
* @returns {String}
|
||||
*/
|
||||
getPinDisplayName() {
|
||||
if (this.entity.PinToolTip) {
|
||||
const matchResult = this.entity.PinToolTip.match(/\s*(.+?(?=\\n)|.+\S)\s*/) // Match up until the first \n
|
||||
return matchResult[1]
|
||||
}
|
||||
return Utility.formatStringName(this.entity.PinName)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user