Bug: Replace non-numeric characters in Twilio phonenumber (#958)

This commit is contained in:
Pranav Raj S 2020-06-13 22:29:12 +05:30 committed by GitHub
parent 944fbf27b7
commit ecd5e20133
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,7 +138,7 @@ export default {
medium: this.medium,
account_sid: this.accountSID,
auth_token: this.authToken,
phone_number: this.phoneNumber,
phone_number: `+${this.phoneNumber.replace(/\D/g, '')}`,
},
}
);