fixed date regex, and content type on documents