From 524039d95b22942d05e684d8d2092c9ce1de540a Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Mon, 7 Oct 2024 14:03:39 -0500 Subject: [PATCH] fix markdown URL logic --- src/webpage/markdown.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/webpage/markdown.ts b/src/webpage/markdown.ts index 93220bc..bf9088f 100644 --- a/src/webpage/markdown.ts +++ b/src/webpage/markdown.ts @@ -410,14 +410,14 @@ txt[j + 1] === undefined) } if( !keep && -txt[i] === "h" && -txt[i + 1] === "t" && -txt[i + 2] === "t" && -txt[i + 3] === "p" + txt[i] === "h" && + txt[i + 1] === "t" && + txt[i + 2] === "t" && + txt[i + 3] === "p" ){ let build = "http"; let j = i + 4; - const endchars = new Set(["\\", "<", ">", "|", "]", " "]); + const endchars = new Set(["\\", "<", ">", "|", "]", " ","\n"]); for(; txt[j] !== undefined; j++){ const char = txt[j]; if(endchars.has(char)){