Skip to content

Commit c608c17

Browse files
committed
(fix) show user tags and templates with spaces
1 parent 68e3319 commit c608c17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/Room/Room.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,8 @@ export default {
749749
while (
750750
position > 0 &&
751751
this.message.charAt(position - 1) !== tagChar &&
752-
this.message.charAt(position - 1) !== ' '
752+
// eslint-disable-next-line no-unmodified-loop-condition
753+
(this.message.charAt(position - 1) !== ' ' || tagChar !== ':')
753754
) {
754755
position--
755756
}

0 commit comments

Comments
 (0)