Interval parser not working for complex string

Issue #296 resolved
Gregory Smith created an issue

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)

  1. Log in to comment