elixir: fix get_name

pull/1746/head
Simon Legner 3 years ago
parent 10e2893f9f
commit c3bce85947

@ -5,7 +5,7 @@ module Docs
css('h1 .app-vsn').remove
if current_url.path.start_with?('/getting-started')
at_css('h1').content.strip.remove(/\.\z/)
(at_css('h1 > span') or at_css('h1')).content.strip.remove(/\.\z/)
else
name = at_css('h1').content.strip
name = name.split(' ').first unless name.start_with?('mix ') # ecto

Loading…
Cancel
Save