removed bogus assert in regex