diff --git a/lib/port_in_order.rb b/lib/port_in_order.rb index 5030fc0e621c7223dab086e1d2c699288ba9a63c..4e29c21c8383097fbe70ef767a619a118ffbc7eb 100644 --- a/lib/port_in_order.rb +++ b/lib/port_in_order.rb @@ -8,7 +8,7 @@ class PortInOrder "BillingTelephoneNumber", "Subscriber", "WirelessInfo" ) # If the zip has anything that's not a digit, assume Canada - if params.dig("Subscriber", "ServiceAddress", "Zip") =~ /[^\d\s]/ + if params.dig("Subscriber", "ServiceAddress", "Zip") =~ /[^-\d\s]/ Canada.new(customer, params) else new(customer, params)