Try adding a comment with spaces in it. Note as you type the spaces, the X more to go.... counter goes down. An example is the following:

123          456

Each space decrements the counter, and eventually breaks into the "X characters left". You can get all the way down to "0 characters left". With only one or two nonwhitespace characters entered. It's possible to have "0 characters left" and still get the error shown below.

adding comment bug demo

  • 123........456? – mnel Mar 5 '13 at 2:42
  • 123456 catch CommentTooShortException e – Doorknob Mar 5 '13 at 2:44
  • 2
    another status-bydesign – Antony Mar 5 '13 at 2:53
  • Little known fact, SO developers are huge fans of Fortran and consider spaces irrelevant. – user7116 Mar 5 '13 at 3:12
  • 2
    Little known fact: bananas pad twice as much. – R. Martinho Fernandes Mar 5 '13 at 3:20

Think about this, why would it be appropriate for a user to be able to comment with just whitespace? It doesn't make any sense to not validate it for whitespace.

We don't want white space replies, or very very short replies, padded out with spaces to pass validation. Hence, you can't reply with blocks of whitespace.

It's not wrong in saying there's less than 15 chars. 123.456, is 7 chars as far as the validator sees it.


  1. We don't want < 15 char comments padded out with whitespace to pass through, so we check for it.
  2. When it validates it, it reads your answer as "123 456", not "123 456"

Just to back this up, even if you just type out 123.......456, it shortens it to one space.

  • 31
    ​​​​​​​​​​​​​​​ – Mysticial Mar 5 '13 at 2:59

Not the answer you're looking for? Browse other questions tagged .