From a28ba5bebbf57880c03f5ea1658305144791dec8 Mon Sep 17 00:00:00 2001 From: FreddleSpl0it Date: Mon, 30 Oct 2023 16:07:10 +0100 Subject: [PATCH] [Web] fix broken github links in changelog --- data/web/js/site/debug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/web/js/site/debug.js b/data/web/js/site/debug.js index 10b1e8cf3f..512d9551e8 100644 --- a/data/web/js/site/debug.js +++ b/data/web/js/site/debug.js @@ -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