Skip to content

Commit 9b6a59b

Browse files
authored
Merge pull request #2022 from codidact/0valt/2021/comment-mentions-fix
2 parents 39d0527 + dbf1d01 commit 9b6a59b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/assets/javascripts/comments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ $(() => {
387387

388388
const $tgt = $(ev.target);
389389
const content = $tgt.val();
390-
const splat = content.split(' ');
390+
const splat = content.split(/\s+/);
391391
const caretPos = $tgt[0].selectionStart;
392392
const [currentWord, posInWord] = QPixel.currentCaretSequence(splat, caretPos);
393393

0 commit comments

Comments
 (0)