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
5 css('h1 .app-vsn').remove5 css('h1 .app-vsn').remove
6 6
7 if current_url.path.start_with?('/getting-started')7 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/)
9 else9 else
10 name = at_css('h1').content.strip10 name = at_css('h1').content.strip
11 name = name.split(' ').first unless name.start_with?('mix ') # ecto11 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