History

elixir: fix get_name

Simon Legner committed 4 years ago

Commit c3bce851 parent 10e28931 file · +1 −1Browse files

Unified · Split

lib/docs/filters/elixir/entries.rb+1−1
@@ -5,7 +5,7 @@ module Docs · 4 unmodified lines
55 css('h1 .app-vsn').remove
66
77 if current_url.path.start_with?('/getting-started')
8− at_css('h1').content.strip.remove(/\.\z/)
8+ (at_css('h1 > span') or at_css('h1')).content.strip.remove(/\.\z/)
99 else
1010 name = at_css('h1').content.strip
1111 name = name.split(' ').first unless name.start_with?('mix ') # ecto

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t