Fix https:/ links without www. Uses a regex now

This commit is contained in:
Hendrik Kleinwaechter
2024-01-19 09:09:00 +01:00
parent f2861e95e4
commit 9fa7a768ea

View File

@@ -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