Minor fixes

This commit is contained in:
barsdeveloper
2022-04-25 18:51:23 +02:00
parent 4b563f023e
commit 1aa4ceb11c
8 changed files with 56 additions and 13 deletions

View File

@@ -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)
}