Skip to content

Commit

Permalink
Added Github Links to Issues in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Arinas committed Oct 21, 2020
1 parent cd02990 commit e624a3f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,11 @@ <h2>Author/<br />Contributors</h2>
});

// set all github links
// $('body').html().matchAll(/#\d{1,4}/)

var res = $('section.changelog').html().replace(/(#\d{1,})/gi, function (x) {
var num = x.substr(1);
return '<a target="_blank" href="https://github.com/andreknieriem/simplelightbox/issues/'+num+'">'+x+'</a>';
});
$('section.changelog').html(res);
})();
</script>
</body>
Expand Down

0 comments on commit e624a3f

Please sign in to comment.