1
0
Эх сурвалжийг харах

fix images in C/C++ docs

adjusting the html_filter to work with the new URIs
ClasherKasten 2 жил өмнө
parent
commit
503bfecea6

+ 1 - 1
lib/docs/filters/cppref/clean_html.rb

@@ -106,7 +106,7 @@ module Docs
         end
 
         css('img').each do |node|
-          node['src'] = node['src'].sub! %r{http://en.cppreference.com/common/([^"']+?)\.svg}, 'http://upload.cppreference.com/mwiki/\1.svg'
+          node['src'] = node['src'].sub! %r{https://upload.cppreference.com/mwiki/(images/[^"']+?)}, 'http://upload.cppreference.com/mwiki/\1'
         end
 
         # temporary solution due lack of mathjax/mathml support