diff --git a/packages/suggestion/src/findSuggestionMatch.ts b/packages/suggestion/src/findSuggestionMatch.ts index 68599f80..5efce367 100644 --- a/packages/suggestion/src/findSuggestionMatch.ts +++ b/packages/suggestion/src/findSuggestionMatch.ts @@ -36,7 +36,7 @@ export function findSuggestionMatch(config: Trigger): SuggestionMatch { if (!text) { return null } - + const textFrom = $position.pos - text.length const match = Array.from(text.matchAll(regexp)).pop()