Explorar o código

Improve Flow scraper entry classification

Closes #680.
Thibaut Courouble %!s(int64=8) %!d(string=hai) anos
pai
achega
28aeb115c0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lib/docs/filters/flow/entries.rb

+ 1 - 0
lib/docs/filters/flow/entries.rb

@@ -6,6 +6,7 @@ module Docs
       end
 
       def get_type
+        return 'React' if slug.start_with?('react')
         type = at_css('.guide-nav .nav-item').content.strip
         type.remove! %r{ \(.*}
         type