(length)
| 59 | const cardLabel = removeBy ? name.replace("by ", "") : name |
| 60 | |
| 61 | function getFormattedLabel(length) { |
| 62 | if (cardLabel?.length <= length) { |
| 63 | return cardLabel |
| 64 | } else { |
| 65 | return cardLabel.substring(0, length) + "..." |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | modifierCard.dataset.fullName = name // preserve the full name |
| 70 | regularLabel.dataset.fullName = name // preserve the full name, legacy support for older plugins |
no outgoing calls
no test coverage detected