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.45.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.44.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.43.1 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.43.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.42.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.41.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.40.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.39.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.38.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.37.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.36.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.35.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.34.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.33.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.32.0 lib/roda/plugins/_symbol_regexp_matchers.rb