From 9fa7a768ea5f786d5f7b6425ae4941d349b8a4d7 Mon Sep 17 00:00:00 2001 From: Hendrik Kleinwaechter Date: Fri, 19 Jan 2024 09:09:00 +0100 Subject: [PATCH] Fix https:/ links without www. Uses a regex now --- website/modify_build.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/modify_build.rb b/website/modify_build.rb index 903b175..bedfd5e 100644 --- a/website/modify_build.rb +++ b/website/modify_build.rb @@ -649,7 +649,7 @@ class ModifyBuild # For some reason some of the links are broken in the conversion process. # They have https:/www and are missing a slash. def fix_https_links(text) - text.gsub("https:/www", "https://www") + text.gsub(/https:\/(?!\/)/, 'https://') end end