lib/dir_model/import.rb in dir_model-0.6.0 vs lib/dir_model/import.rb in dir_model-0.6.1

- old
+ new

@@ -83,10 +83,10 @@ @_match = (source_path||'').match(get_regexp) end def get_regexp if foreign_value - Regexp.new(self.class.options[:regex].call(foreign_value), Regexp::IGNORECASE) + Regexp.new(self.class.options[:regex].call(Regexp.quote(foreign_value)), Regexp::IGNORECASE) else self.class.options[:regex].call end end end