This question already has an answer here:

When you are writing a comment, type something with 14 characters. It will tell you that you need one more at least. Leave a space. It will look like you can post the comment. Try posting it, it says you can't. But according to the counter just below the text-area, you should be fine.

marked as duplicate by Wrzlprmft, ale, Optimus Prime, Nathan Tuggy, Glorfindel Aug 18 '17 at 15:38

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.

migrated from stackoverflow.com Jan 21 '13 at 1:14

This question came from our site for professional and enthusiast programmers.

  • because they are trimming the text? – DarthVader Jan 20 '13 at 19:19
  • @DarthVader Still.. – Koray Tugay Jan 20 '13 at 19:19
  • Still what? if they dont trim the text, u can put 15 empty space. – DarthVader Jan 20 '13 at 19:20
  • Still, it is a bug. – Koray Tugay Jan 20 '13 at 19:21
  • no it s not. why would it be bug? – DarthVader Jan 20 '13 at 19:22
  • Ok whatever, if you say so.. – Koray Tugay Jan 20 '13 at 19:22
  • put 15 space and try to submit. – DarthVader Jan 20 '13 at 19:23

The message showing the number of characters that are still necessary to reach the minimum comment length, or the number of characters that you can still type is shown on browser side, while the validation of the comment is done server-side.

The error message could be changed as the following, but then it should list all the characters that are removed.

Comments must be at least 15 characters in length. Trailing spaces are removed.

For example, 15 spaces followed by a back-tick still cause the error to appear.

Probably the message should be similar to the following one, if it needs to really be changed.

Comments must be at least 15 characters in length. Some characters are not considered when calculating the comment lenght.

  • Surely javascript has a :strip" function that can be applied before the "count" function - so that it will accurately determine the real allowed character length? – Taryn East Jan 21 '13 at 2:09
  • It is more complicated than removing some characters from the end of the comment. Plus, parsing the comment is done server-side. – kiamlaluno Jan 21 '13 at 2:18

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