Преглед изворни кода

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.sub!('Element.', '').try(:downcase!)
         name.sub!('Global attributes.', '').try(:concat, ' (attribute)')
-        name.sub!(/input.(\w+)/, 'input type="\1"')
+        name.sub!(/input\.([-\w]+)/, 'input type="\1"')
         name
       end
 

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

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