Fix regex when parsing info.yml

Migrated issue

Reported by: jonathan1055

Related to !306 (closed) !305 (merged)

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 Feb 12, 2026 by drupalbot
Assignee Loading
Time tracking Loading