Interval parser not working for complex string
Issue #296
resolved
Minor issue, but it might eliminate potential problems with the interval parser.
I was playing with this workout.
https://rowsandall.com/rowers/workout/24120/editintervals
If I parse it with a simple string 10x1min, I get a good summary. If I parse it with the string
1min + 9 x (10sec + 50 sec)
The summary comes back as one interval.
If I do the string 1min + 10sec + 50 sec + 8x1min, I get a good summary. If I do the string 1min + 2x(10sec+50sec) + 7x1min, I get a bad summary
If I do the string 1min + 1x(10sec+50sec) + 8 x 1min, I get an incorrect summary.
Comments (3)
-
repo owner -
repo owner 6th rule was greedy. Shouldn't be greedy. Changed it.
-
repo owner - changed status to resolved
- Log in to comment
looking at it