mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-08 12:11:11 -06:00
Fix https:/ links without www. Uses a regex now
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user