Fix mentions for messages with ASCII art characters

This commit is contained in:
Scott Nonnenberg 2023-02-01 17:22:56 -08:00 committed by GitHub
parent 8e4de33d71
commit 015d789c90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 19 deletions

View file

@ -332,7 +332,7 @@ export class Linkify extends React.Component<Props> {
const { text, renderNonLink = defaultRenderNonLink } = this.props;
if (!shouldLinkifyMessage(text)) {
return text;
return renderNonLink({ text, key: 1 });
}
const chunkData: Array<{