Fixes regex match fail bug in composer.json type field