Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 9 lines (8 sloc) 0.302 kb
1 2 3 4 5 6 7 8 9
module Patterns
  extend ActiveSupport::Concern

  SPECIAL_CHARACTERS = ".-_"
  ALLOWED_CHARACTERS = "[A-Za-z0-9#{Regexp.escape(SPECIAL_CHARACTERS)}]+"
  ROUTE_PATTERN = /#{ALLOWED_CHARACTERS}/
  LAZY_ROUTE_PATTERN = /#{ALLOWED_CHARACTERS}?/
  NAME_PATTERN = /\A#{ALLOWED_CHARACTERS}\Z/
end
Something went wrong with that request. Please try again.