app/libs/agilibox/phone_number_sanitizer.rb in agilibox-1.9.5 vs app/libs/agilibox/phone_number_sanitizer.rb in agilibox-1.9.6
- old
+ new
@@ -4,10 +4,10 @@
def initialize(phone_number)
@phone_number = phone_number
end
def call
- phone_number.to_s.gsub(/[^0-9\+]+/, "").presence
+ phone_number.to_s.gsub(/[^0-9+]+/, "").presence
end
def self.call(*args)
new(*args).call
end