chore: merge dev to main #177
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ export const cleanCodeBlock = (text: string) => {
|
||||||
|
|
||||||
// Keep links
|
// Keep links
|
||||||
text = text.replace(
|
text = text.replace(
|
||||||
/(http[s]?:\/\/(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*(),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+)/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) {
|
||||||
return `\`${url}\``;
|
return `\`${url}\``;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue