Skip to content

Commit

Permalink
remove empty alternative from regex
Browse files Browse the repository at this point in the history
  • Loading branch information
fitztrev committed Oct 13, 2024
1 parent 7d8780c commit db8eb37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/bits/src/bits.forum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ site.load.then(() => {
new Textcomplete(new TextareaEditor(textarea), [
{
index: 2,
match: /(^|\s)@(|[a-zA-Z_-][\w-]{0,19})$/,
match: /(^|\s)@([a-zA-Z_-][\w-]{0,19})$/,
search: function (term: string, callback: (names: string[]) => void) {
// Initially we only autocomplete by participants in the thread. As the user types more,
// we can autocomplete against all users on the site.
Expand Down

0 comments on commit db8eb37

Please sign in to comment.