Fixed the "type" script, broken by a overreaching regex.