Ah, so that seems to be as simple as changing (and its other usage ^[ ]{#{min_space}}) ^[ ]*
^[ ]{#{min_space}}
^[ ]*
to ^[\s]*
^[\s]*