Fix regex when parsing info.yml
Problem/Motivation
The regex used to extract the type: when reading a projects .info.yml is too permissive.
Reported on #3492716: Fix CI for Stylelint 16
Proposed resolution
Thanks to @longwave for the solution. Only allow spaces before type: so replace leading ^.* with [[:space:]]*
Remaining tasks
Related issue: Issue #3463740
Edited by drupalbot