mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Add a link to the github issue if it is added to the change notes
This commit is contained in:
@@ -24,9 +24,13 @@ class UpdateChanges extends Component {
|
|||||||
<ul>
|
<ul>
|
||||||
{
|
{
|
||||||
changes.map((change, index) => {
|
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 (
|
return (
|
||||||
<li key={index}>
|
<li key={index}>
|
||||||
<InlineMarkdown data={change} />
|
<InlineMarkdown data={checkChange} />
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user