(userMention: string)
| 35 | = `a[class^="Avatar-module__avatarLink"][class*="avatarOuter"]:not([href$="/${loggedInUser}"])`; |
| 36 | |
| 37 | function prefixUserMention(userMention: string): string { |
| 38 | // The alt may or may not have it #4859 |
| 39 | return '@' + userMention.replace('@', '').replace(/\[bot\]$/, ''); |
| 40 | } |
| 41 | |
| 42 | function mentionUser({delegateTarget: button}: DelegateEvent): void { |
| 43 | const userMention = getCommentAuthor(button.parentElement!); |
no test coverage detected