浏览代码

Update HTML documentation

Fixes https://devdocs.io/html/global_attributes/inputmode entry.

Fixes #1252.
Simon Legner 4 年之前
父节点
当前提交
04828da81d
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      lib/docs/filters/html/entries.rb
  2. 1 1
      lib/docs/scrapers/mdn/html.rb

+ 1 - 1
lib/docs/filters/html/entries.rb

@@ -8,7 +8,7 @@ module Docs
         name = super
         name = super
         name.sub!('Element.', '').try(:downcase!)
         name.sub!('Element.', '').try(:downcase!)
         name.sub!('Global attributes.', '').try(:concat, ' (attribute)')
         name.sub!('Global attributes.', '').try(:concat, ' (attribute)')
-        name.sub!(/input.(\w+)/, 'input type="\1"')
+        name.sub!(/input\.([-\w]+)/, 'input type="\1"')
         name
         name
       end
       end
 
 

+ 1 - 1
lib/docs/scrapers/mdn/html.rb

@@ -29,7 +29,7 @@ module Docs
       url
       url
     end
     end
 
 
-    # self.release = '2021-04-29'
+    # self.release = '2021-04-29 23:00'
 
 
   end
   end
 end
 end