app/libs/agilibox/phone_number_sanitizer.rb in agilibox-1.0.12 vs app/libs/agilibox/phone_number_sanitizer.rb in agilibox-1.0.13

- old
+ new

@@ -4,11 +4,10 @@ def initialize(phone_number) @phone_number = phone_number end def call - sanitized = phone_number.to_s.gsub(/[^0-9\+]+/, "") - sanitized if sanitized.present? + phone_number.to_s.gsub(/[^0-9\+]+/, "").presence end def self.call(*args) new(*args).call end