Skip to content

Commit dbf1d01

Browse files
committed
fixed at-mention suggestions at line start in multiline comments
The issue only affected the 2nd line and after
1 parent 39d0527 commit dbf1d01

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)