The regex on line 27 of app/models/search.rb is:
So instead of matching any amount of whitespace at the end, it instead matches any amount of the letter s.
What it should be
On the work search page, make sure entering "2 days ago" and "2 days ago " in the Date field gets the same results, and that "2 days agos" does not get the same results.
Credit Russell Flaum