I am surprised to find the following bug in edit system:
Follow the steps bellow:
- A user with reputation less than 2000 points edits a post.
- Instead of a edit summary message he insert this:
" "(one space) and he receive a message that he has to enter a 10 chars longer message. He insert more than
ten spacesinside of Edit Summary textbox, and click Save Edits button.
- When a user with reputation higher than 2000 reviews this edit the result is this:
Do you see? No edit summary at above screen shot.
For another example of the issue, take a look at rev 4 in the history of this very question.
Instead of using
if (... .length > 10), shouldn't be used
if (... .trim().length > 10)?