Skip to content

Commit

Permalink
[Android] Fix @ popup for non-latin chars
Browse files Browse the repository at this point in the history
  • Loading branch information
oprudkyi committed Jan 18, 2025
1 parent 3e0ac0a commit 8cb25a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/strings/mention-manip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function getMentionAt(
text: string,
cursorPos: number,
): FoundMention | undefined {
let re = /(^|\s)@([a-z0-9.]*)/gi
let re = /(^|\s)@([^\s]*)/gi
let match
while ((match = re.exec(text))) {
const spaceOffset = match[1].length
Expand Down

0 comments on commit 8cb25a4

Please sign in to comment.