Fix transposed test number: +61 423 274 487 (61423274487) everywhere
This commit is contained in:
@@ -5,8 +5,8 @@ import "strings"
|
||||
// NormalizeAU normalises a phone number to international AU format without a
|
||||
// leading '+' or zero:
|
||||
//
|
||||
// "+61432374487" -> "61432374487"
|
||||
// "0432374487" -> "61432374487"
|
||||
// "+61423274487" -> "61423274487"
|
||||
// "0432374487" -> "61423274487"
|
||||
func NormalizeAU(phone string) string {
|
||||
s := strings.Map(func(r rune) rune {
|
||||
if r >= '0' && r <= '9' {
|
||||
|
||||
Reference in New Issue
Block a user