mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Fix deprecated Object warning in lib/spree/localized_number
This commit is contained in:
@@ -44,7 +44,7 @@ module Spree
|
||||
|
||||
def self.valid_localizable_number?(number)
|
||||
return true unless number.is_a?(String) || number.respond_to?(:to_d)
|
||||
return false if number =~ /[.,]\d{2}[.,]/
|
||||
return false if number.to_s =~ /[.,]\d{2}[.,]/
|
||||
|
||||
true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user