1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-08-18 00:09:37 +02:00

Add a link to the github issue if it is added to the change notes

This commit is contained in:
nitsua 2020-09-27 11:25:02 -04:00 committed by Qstick
parent 9044976393
commit 987ed357d5

View File

@ -24,9 +24,13 @@ class UpdateChanges extends Component {
<ul>
{
changes.map((change, index) => {
const checkChange = change.replace(/#\d{4,5}\b/g, (match, contents) => {
return `[${match}](https://github.com/Radarr/Radarr/issues/${match.substring(1)})`;
});
return (
<li key={index}>
<InlineMarkdown data={change} />
<InlineMarkdown data={checkChange} />
</li>
);
})