CLC-979 - Add task - entering a date with a space validates but doesn't work

https://jira.media.berkeley.edu/jira/browse/CLC-979

* Make regex safe
* Rename variable
* Add comment
* Order CSS