What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 134 Stack Exchange communities.

This question already has an answer here:

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

share|improve this question

marked as duplicate by animuson, Charles, Tim Stone, Anna Lear Mar 5 '13 at 3:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
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

1 Answer 1

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.

Basically:

  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.

share|improve this answer
27  
​​​​​​​​​​​​​​​ –  Mysticial Mar 5 '13 at 2:59

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