fix off-by-one error in range for date regexp parsing