Properly handle pages that exist in sub-dirs in search results

This commit is contained in:
Jon Frisby
2010-08-29 22:23:14 -07:00
committed by Henrik Hansen
parent 50c207ad91
commit e9239050e0
2 changed files with 11 additions and 3 deletions
+2 -2
View File
@@ -219,11 +219,11 @@ module Gollum
search_output.split("\n").collect do |line|
result = line.split(':')
file_name = result[1]
file_name = Gollum::Page.canonicalize_filename(::File.basename(result[1]))
{
:count => result[2].to_i,
:name => file_name.split('.').first
:name => file_name
}
end
end