Skip to content

Commit

Permalink
[Web] fix broken github links in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddleSpl0it committed Oct 30, 2023
1 parent b93375b commit a28ba5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/web/js/site/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,7 @@ function showVersionModal(title, version){
function parseGithubMarkdownLinks(inputText) {
var replacedText, replacePattern1;

replacePattern1 = /(\b(https?):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim;
replacePattern1 = /(\b(https?):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])(?![^<]*>)/gim;
replacedText = inputText.replace(replacePattern1, (matched, index, original, input_string) => {
if (matched.includes('github.com')){
// return short link if it's github link
Expand Down

0 comments on commit a28ba5b

Please sign in to comment.