class Utils::Patterns::FuzzyPattern
def initialize(opts ={})
def initialize(opts ={}) super r = @pattern.split(//).map { |x| "(#{Regexp.quote(x)})" } * '.*?' @matcher = Regexp.new( "\\A(?:.*/.*?#{r}|.*#{r})", @icase ? Regexp::IGNORECASE : 0) end
def initialize(opts ={}) super r = @pattern.split(//).map { |x| "(#{Regexp.quote(x)})" } * '.*?' @matcher = Regexp.new( "\\A(?:.*/.*?#{r}|.*#{r})", @icase ? Regexp::IGNORECASE : 0) end