fixed some typos

This commit is contained in:
bronku 2026-11-08 22:50:03 +01:00
parent ebeb36921a
commit c726cb76f7
5 changed files with 30 additions and 16 deletions

View file

@ -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