mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
parent
214c06ca9f
commit
fb20268e36
2 changed files with 4 additions and 2 deletions
|
@ -16,7 +16,8 @@ module Docs
|
|||
options[:skip_patterns] = [/experimental/]
|
||||
|
||||
options[:fix_urls] = ->(url) do
|
||||
url.sub! %r{\A.+/http%3A/}, "http://"
|
||||
url.sub! %r{\A.+/http%3A/}, 'http://'
|
||||
url.sub! 'http://en.cppreference.com/upload.cppreference.com', 'http://upload.cppreference.com'
|
||||
url
|
||||
end
|
||||
|
||||
|
|
|
@ -24,7 +24,8 @@ module Docs
|
|||
options[:only_patterns] = [/\.html\z/]
|
||||
|
||||
options[:fix_urls] = ->(url) do
|
||||
url.sub! %r{\A.+/http%3A/}, "http://"
|
||||
url.sub! %r{\A.+/http%3A/}, 'http://'
|
||||
url.sub! 'http://en.cppreference.com/upload.cppreference.com', 'http://upload.cppreference.com'
|
||||
url
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue