1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

comment typo

This commit is contained in:
Bruno Windels
2019-06-18 09:50:31 +02:00
parent 3119feaa17
commit 1db505c667

View File

@@ -27,7 +27,7 @@ function parseAtRoomMentions(text, partCreator) {
if (textPart.length) {
parts.push(partCreator.plain(textPart));
}
// it's safe to never append @room after the last text
// it's safe to never append @room after the last textPart
// as split will report an empty string at the end if
// `text` ended in @room.
const isLast = i === arr.length - 1;