Sha256: 08f015b114ff1be5378d89a738a163bb68406a1d03023f6f41fa0d7803a889c6

Contents?: true

Size: 623 Bytes

Versions: 55

Compression:

Stored size: 623 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
        private

        # 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

55 entries across 55 versions & 1 rubygems

Version Path
roda-3.86.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.85.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.84.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.83.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.82.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.81.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.79.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.78.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.77.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.76.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.75.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.74.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.73.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.72.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.71.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.70.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.69.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.68.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.67.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.66.0 lib/roda/plugins/_symbol_regexp_matchers.rb