Correcting type regex.