Do we still need `match.length-1` if there's only one capture group?