Skip to content

Commit 17fe55e

Browse files
authored
fix toHTML length check
1 parent 202a522 commit 17fe55e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ function loader (registryOrVersion) {
429429
}
430430
str += '</span>'
431431
// It's not safe to truncate HTML so just return unformatted text
432-
return str > MAX_CHAT_LENGTH
432+
return str.length > MAX_CHAT_LENGTH
433433
? escapeHtml(this.toString())
434434
: str
435435
}

0 commit comments

Comments
 (0)