Make captures nongreedy in reps module