浏览代码

Update lodash documentation (4.17.4)

Fixes #552.
Thibaut Courouble 9 年之前
父节点
当前提交
79a2025dde
共有 2 个文件被更改,包括 2 次插入2 次删除
  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
         # Remove code highlighting
         css('pre').each do |node|
         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.content = node.content.strip
           node['data-language'] = 'javascript'
           node['data-language'] = 'javascript'
         end
         end

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

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