Fix names and strings

This commit is contained in:
barsdeveloper
2022-05-03 22:12:22 +02:00
parent 2617e15691
commit 5f4b35427e
8 changed files with 34 additions and 35 deletions

View File

@@ -76,7 +76,7 @@ export default class PinElement extends IElement {
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(matchResult[1])
}
return Utility.formatStringName(this.entity.PinName)
}