We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e2c4834 + 53ed261 commit d7d20a3Copy full SHA for d7d20a3
src/utils/utils.ts
@@ -3,7 +3,7 @@ import { Change, diffChars } from 'diff';
3
import matchAll from 'string.prototype.matchall';
4
import { MentionData, Part, Position, RegexMatchResult, Suggestion } from '../types';
5
6
-const mentionRegEx = /(?<original>@\[(?<name>.+)]\((?<id>([0-9]*))\))/gi;
+const mentionRegEx = /(?<original>@\[(?<name>([^@[]*))]\((?<id>([0-9]*))\))/gi;
7
8
type CharactersDiffChange = Omit<Change, 'count'> & { count: number };
9
0 commit comments