add ref
All checks were successful
Lint and Format Check / lint-and-format (pull_request) Successful in 43s

This commit is contained in:
Mylloon 2024-09-23 15:36:30 +02:00
parent 5b659d9948
commit b1943ea84d
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

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