浏览代码

elixir: fix get_name

Simon Legner 3 年之前
父节点
当前提交
c3bce85947
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/docs/filters/elixir/entries.rb

+ 1 - 1
lib/docs/filters/elixir/entries.rb

@@ -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