chore: merge dev to main #177
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue