Sha256: 954532bd8e3c06174e4374f4af71314488de57f93af6716734c27b879ea8aa5f
Contents?: true
Size: 606 Bytes
Versions: 34
Compression:
Stored size: 606 Bytes
Contents
# frozen-string-literal: true # class Roda module RodaPlugins # The _symbol_regexp_matchers plugin is designed for internal use by other plugins, # for the historical behavior of a symbol matching an arbitrary segment by default # using a regexp. module SymbolRegexpMatchers module RequestMethods # The regular expression to use for matching symbols. By default, any non-empty # segment matches. def _match_symbol_regexp(s) "([^\\/]+)" end end end register_plugin(:_symbol_regexp_matchers, SymbolRegexpMatchers) end end
Version data entries
34 entries across 34 versions & 1 rubygems