module Roda::RodaPlugins::MultibyteStringMatcher::RequestMethods
Private Instance Methods
Source
# File lib/roda/plugins/multibyte_string_matcher.rb, line 40 def _match_string(str) rp = @remaining_path if rp.start_with?("/#{str}") last = str.length + 1 case rp[last] when "/" @remaining_path = rp[last, rp.length] when nil @remaining_path = "" end end end
Use multibyte safe string matcher, using the same approach as in Roda
3.0.