lib/active_merchant/billing/gateways/realex.rb in activemerchant-1.107.3 vs lib/active_merchant/billing/gateways/realex.rb in activemerchant-1.107.4

- old
+ new

@@ -371,10 +371,11 @@ order_id.to_s.gsub(/[^a-zA-Z0-9\-_]/, '') end def ipv4?(ip_address) return false if ip_address.nil? - !!ip_address[/\A\d+\.\d+\.\d+\.\d+\z/] + + !ip_address.match(/\A\d+\.\d+\.\d+\.\d+\z/).nil? end end end end