Forráskód Böngészése

Update lodash documentation (4.17.4)

Fixes #552.
Thibaut Courouble 9 éve
szülő
commit
79a2025dde
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      lib/docs/filters/lodash/clean_html.rb
  2. 1 1
      lib/docs/scrapers/lodash.rb

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

@@ -20,7 +20,7 @@ module Docs
 
         # Remove code highlighting
         css('pre').each do |node|
-          node.inner_html = node.inner_html.gsub('</div>', "</div>\n").gsub('&nbsp;', ' ')
+          node.inner_html = node.inner_html.gsub('</div>', "</div>\n").gsub('&nbsp;', ' ').gsub('&amp;ampamp;', '&amp;amp;')
           node.content = node.content.strip
           node['data-language'] = 'javascript'
         end

+ 1 - 1
lib/docs/scrapers/lodash.rb

@@ -19,7 +19,7 @@ module Docs
     HTML
 
     version '4' do
-      self.release = '4.17.2'
+      self.release = '4.17.4'
       self.base_url = "https://lodash.com/docs/#{release}"
     end