lib/countries/country/finder_methods.rb in countries-5.7.1 vs lib/countries/country/finder_methods.rb in countries-5.7.2
- old
+ new
@@ -61,10 +61,10 @@
[attributes, parse_value(val)]
end
def parse_value(value)
- value = value.gsub(SEARCH_TERM_FILTER_REGEX, '') if value.respond_to?(:gsub)
+ value = value.gsub(SEARCH_TERM_FILTER_REGEX, '').freeze if value.respond_to?(:gsub)
strip_accents(value)
end
def searchable_attribute?(attribute)
searchable_attributes.include?(attribute.to_sym)