Ensure original data is shown when no matches are made

sonarr-pull-8e925ac7 v1.3.3.3432
Bogdan 1 year ago
parent eb9f70accb
commit 594254fd2b

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

Loading…
Cancel
Save