fuzzydb is a fuzzy matching database engine capable of providing human-like search results that make life much easier for users of websites searching for things like cars, houses, people and jobs.
19
stars
5
forks
source link
Arbitrary whitespace should be permitted around user input #90
As a signed in user, I visit the “Give Something” page.
I copy and paste my postcode from another application into the “Location” field, but accidentally include some surrounding whitespace.
When I attempt to submit the form, Fridge Mountain rejects my postcode due to the surrounding whitespace.
The example above refers only to a single instance of this problem, but generally we should strip non-meaningful whitespace from all user input. Users are not likely to expect such whitespace to affect their use of the site. For fields that are validated, we should do this before validation.
Examples of non-meaningful whitespace:
All whitespace in a postcode.
All whitespace in a {latitude,longitude} pair.
Leading and trailing whitespace in general textual input (personal name, item title, item description).
The example above refers only to a single instance of this problem, but generally we should strip non-meaningful whitespace from all user input. Users are not likely to expect such whitespace to affect their use of the site. For fields that are validated, we should do this before validation.
Examples of non-meaningful whitespace: