lib/media_wiki/utils.rb in mediawiki-gateway-0.6.0 vs lib/media_wiki/utils.rb in mediawiki-gateway-0.6.1

- old
+ new

@@ -19,10 +19,10 @@ # get_path_to_subpage("Namespace:Foo") -> nil # # [title] Page name string in Wiki format def get_path_to_subpage(title) return nil unless title and title.include? '/' - parts = title.split(/\/([^\/]*)$/).first + title.split(/\/([^\/]*)$/).first end # Extract subpage name. If there is no hierarchy above, return page name. # # Examples: