You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3efa381
Browse filesBrowse the repository at this point in the historyBrowse files
fix: guard against UTF-8 boundary panic in multi-word mention extractor
The two-pass extractor sliced after_at by byte offset (known.len()) which
can land mid-character when content contains multi-byte UTF-8 (CJK, emoji).
Replace panicking &after_at[..n] with after_at.get(..n) which returns None
on invalid boundaries, gracefully skipping the candidate.
Also fix clippy: sort_by → sort_by_key(Reverse) for the longest-first sort.
Add three Unicode-specific tests to prevent regression.
0 commit comments