d19f447b80
Starting from the end and stopping at first match doesn't guarantee correctness. Starting from the beginning does.