mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-07-12 16:17:24 +01:00
Fix emoji autocompletion absorbing non-spaced emojis
This commit is contained in:
committed by
Scott Nonnenberg
parent
5b653b3b46
commit
4d659f69cb
@@ -80,7 +80,7 @@ function getWordAtIndex(str: string, index: number) {
|
||||
.slice(0, index + 1)
|
||||
.replace(/\s+$/, '')
|
||||
.search(/\S+$/);
|
||||
const end = str.slice(index).search(/(?:\s|$)/) + index;
|
||||
const end = str.slice(index).search(/(?:[^a-z0-9-_+]|$)/) + index;
|
||||
|
||||
return {
|
||||
start,
|
||||
|
||||
Reference in New Issue
Block a user