Преглед на файлове

[Web] fix broken github links in changelog

FreddleSpl0it преди 2 години
родител
ревизия
a28ba5bebb
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      data/web/js/site/debug.js

+ 1 - 1
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