Unified · Split
| @@ -5,7 +5,7 @@ module Docs · 4 unmodified lines | ||
| 5 | 5 | css('h1 .app-vsn').remove |
| 6 | 6 | |
| 7 | 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 | 9 | else |
| 10 | 10 | name = at_css('h1').content.strip |
| 11 | 11 | name = name.split(' ').first unless name.start_with?('mix ') # ecto |