fix regex stack overflows on parsing unity mdtool output

unity error parser trims lines over 1k chars long, and errors are assumed to have no whitespace prefix.
UPM files map to YAML mode