rails: fix get_name

pull/2104/head
Simon Legner 1 year ago
parent dbf59d2138
commit c9dd0ed106

@ -40,7 +40,7 @@ module Docs
def get_name def get_name
if slug.start_with?('guides') if slug.start_with?('guides')
name = at_css('#feature h2').content.strip name = at_css('#mainCol h2').content.strip
name.remove! %r{\s\(.+\)\z} name.remove! %r{\s\(.+\)\z}
return name return name
end end

Loading…
Cancel
Save