chore: merge dev to main #177

Merged
Anri merged 6 commits from dev into main 2024-09-23 17:51:22 +02:00
Showing only changes of commit b1943ea84d - Show all commits

View file

@ -108,6 +108,7 @@ export const cleanCodeBlock = (text: string) => {
}); });
// Keep links // Keep links
// Reference: https://stackoverflow.com/a/3809435/15436737
text = text.replace( text = text.replace(
/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b[-a-zA-Z0-9()@:%_+.~#?&//=]*/g, /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b[-a-zA-Z0-9()@:%_+.~#?&//=]*/g,
function (url: string) { function (url: string) {