Make the regex for dates more lenient. Partial solution to #2244
Rendered .js