lib/roda/plugins/path_rewriter.rb in roda-2.26.0 vs lib/roda/plugins/path_rewriter.rb in roda-2.27.0
- old
+ new
@@ -34,12 +34,12 @@
# # PATH_INFO '/a/c' => remaining_path '/a/c', no change
#
# Patterns can be rewritten dynamically by providing a block accepting a MatchData
# object and evaluating to the replacement.
#
- # rewrite_path(/\A\/a/(\w+)/){|match| "/a/#{match[1].capitalize}"}
+ # rewrite_path(/\A\/a\/(\w+)/){|match| "/a/#{match[1].capitalize}"}
# # PATH_INFO '/a/moo' => remaining_path '/a/Moo'
- # rewrite_path(/\A\/a/(\w+)/, :path_info => true){|match| "/a/#{match[1].capitalize}"}
+ # rewrite_path(/\A\/a\/(\w+)/, :path_info => true){|match| "/a/#{match[1].capitalize}"}
# # PATH_INFO '/a/moo' => PATH_INFO '/a/Moo'
#
# All path rewrites are applied in order, so if a path is rewritten by one rewrite,
# it can be rewritten again by a later rewrite. Note that PATH_INFO rewrites are
# processed before remaining_path rewrites.