1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-22 07:42:28 +00:00

Ensure original data is shown when no matches are made

This commit is contained in:
Bogdan 2023-07-29 18:30:27 +03:00
parent eb9f70accb
commit 594254fd2b

View file

@ -54,6 +54,10 @@ class InlineMarkdown extends Component {
if (endIndex !== data.length && markdownBlocks.length > 0 && matchedCode) {
markdownBlocks.push(data.substr(endIndex, data.length - endIndex));
}
if (markdownBlocks.length === 0) {
markdownBlocks.push(data);
}
}
return <span className={className}>{markdownBlocks}</span>;