fix(markup): link team mentions that use a different org name case (#39436)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
breken
2026-10-04 07:51:46 -05:00
committed by GitHub
parent 826c65d0ec
commit db7d1da28f
3 changed files with 24 additions and 7 deletions
+1 -1
View File
@@ -240,7 +240,7 @@ func FindAllMentionsBytes(content []byte) []RefSpan {
}
// FindFirstMentionBytes matches the first mention in then given content
// and returns the location of the unvalidated user name, including the @ prefix.
// and returns the location of the unvalidated username, including the @ prefix.
func FindFirstMentionBytes(content []byte) (bool, RefSpan) {
mention := mentionPattern.FindSubmatchIndex(content)
if mention == nil {