28

Hate it when a website asks for a phone number and throws this error at you:

Please correct the following errors:
Phone please use the format 555-555-5555.

LEARN TO FUCKING PARSE!

Comments
  • 9
    I wouldn't mind so much if they bothered to tell you what format they expect. If they don't tell me what format to use I expect them to have been competent enough to take any format I choose. If they ask me to use a particular format then it's on me if I get it wrong, because they told me what they expect.
  • 1
    Sounds like bad coding standards to me
  • 1
    Not to mention that there's more than enogh libs that do that perfectly
  • 1
    Remove all non-digits, check the country code, and check the length. Super easy. 😕
  • 1
    Even worse if you're not American.
  • 0
    Same with an email field that doesn't allow absolutely valid characters (by spec). Better if the error message doesn't tell you what the problem is.
  • 0
Add Comment