mini_phone
                                
                                
                                
                                    mini_phone copied to clipboard
                            
                            
                            
                        Invalid country being returned for Virgin Islands
Running into an issue with validating numbers from Virgin Islands
Problem:
countryis returningUSfor Virgin Islands
Expectation:
countryshould returnVIfor Virgin Islands
Setup:
virgin_islands_phone_number = "+13407759575"
phone = MiniPhone.parse(virgin_islands_phone_number)
phone.valid? # => false
p.country # => "US"
MiniPhone.valid_for_country?(virgin_islands_phone_number, 'VI') # true
                                    
                                    
                                    
                                
I think this is an issue with libphonenumber returning +1 as country code. See https://libphonenumber.appspot.com/phonenumberparser?number=%2B13407759575