Method: Seabright::Collection#convert_regex_to_lua

Defined in:
lib/redis_object/collection.rb

#convert_regex_to_lua(reg) ⇒ Object



488
489
490
# File 'lib/redis_object/collection.rb', line 488

def convert_regex_to_lua(reg)
  "#{reg.casefold? ? "i" : ""}pattern:#{reg.source.gsub("\\","")}"
end