Skip to content

fix username regexp#621

Merged
bensabic merged 5 commits into
vercel:mainfrom
sivchari:fix-username-regexp
Jul 13, 2026
Merged

fix username regexp#621
bensabic merged 5 commits into
vercel:mainfrom
sivchari:fix-username-regexp

Conversation

@sivchari

@sivchari sivchari commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix detectMention falsely matching @bot when @bot-dev is mentioned. \b (word boundary) matches between a word character and a hyphen, so /@bot\b/ incorrectly matches @bot-dev. Replaced with (?![\w-]) to exclude hyphens.

Test plan

Checklist

  • All commits are signed and verified
  • pnpm validate passes
  • Changeset added (or N/A — see CONTRIBUTING.md)
  • Documentation updated (or N/A)

Signed-off-by: sivchari <shibuuuu5@gmail.com>
@sivchari sivchari requested a review from a team as a code owner June 18, 2026 08:26
@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

@sivchari is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@bensabic bensabic merged commit 2531a42 into vercel:main Jul 13, 2026
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants