fixed some typos
This commit is contained in:
parent
ebeb36921a
commit
c726cb76f7
5 changed files with 30 additions and 16 deletions
|
|
@ -46,11 +46,11 @@ func parsePhone(input string) (string, error) {
|
|||
}
|
||||
|
||||
if len(cleaned) != 9 {
|
||||
return "", fmt.Errorf("invalid length: expected 9 digits, got %d", len(cleaned))
|
||||
return "", fmt.Errorf("Numer telefonu musi mieć 9 cyfr")
|
||||
}
|
||||
|
||||
if !isValidPolishMobile(cleaned) {
|
||||
return "", fmt.Errorf("invalid mobile prefix: %s does not match Polish mobile allocations", cleaned[:2])
|
||||
return "", fmt.Errorf("Nieprawidłowy numer telefonu — podaj polski numer komórkowy")
|
||||
}
|
||||
|
||||
return cleaned, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue