Closed Kpaubert closed 1 year ago
@AndreasWintherMoen I'd suggest checking the database for any occurrences of other conventions than plus. If not, this issue can be closed.
The reason I have that function in the first place is because Twilio requires a plus format (E.164 formatting), but most OW users don't add a country code. So the function basically just prepends +47 to those numbers, and also removes any whitespace. I don't think I've seen anyone use the 00 format in OW, but I can take a look.
You said that you would take a look. Any updates?
Closing this due to staleness and irrelevance.
Currently, the utility function format_phone_number checks if the phone_number includes a country code. It does this by checking if the number starts with a plus sign, "+". Another way of assigning a country code is by starting the phone number with two zeroes, "00". It's not necessarily an important change, since most people use the plus convention (if any) - but it could be an idea to check if a phone number starts with "00" so the function doesn't return weird numbers.