lib/yard/server/commands/frames_command.rb in yard-0.6.1 vs lib/yard/server/commands/frames_command.rb in yard-0.6.2

- old
+ new

@@ -3,10 +3,10 @@ module Commands class FramesCommand < DisplayObjectCommand include DocServerHelper def run - main_url = request.path.gsub(/^(.+)?\/frames\/(#{path})$/, '\1/\2') + main_url = request.path.gsub(/^(.+)?\/frames(?:\/(#{path}))?$/, '\1/\2') if path =~ %r{^file/} page_title = "File: #{$'}" elsif !path.empty? page_title = "Object: #{object_path}" elsif options[:files] && options[:files].size > 0