We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55293f1 commit 252ec34Copy full SHA for 252ec34
src/TributeRange.js
@@ -125,7 +125,7 @@ class TributeRange {
125
: ' '
126
text += textSuffix
127
let startPos = info.mentionPosition
128
- let endPos = info.mentionPosition + info.mentionText.length + textSuffix.length
+ let endPos = info.mentionPosition + info.mentionText.length + (textSuffix === '' ? 1 : textSuffix.length)
129
if (!this.tribute.autocompleteMode) {
130
endPos += info.mentionTriggerChar.length - 1
131
}
0 commit comments