episphere / quest

experimenting with the idea of a questionnaire markup
https://episphere.github.io/quest/
2 stars 11 forks source link

fix button displayif problem #369

Closed danielruss closed 2 years ago

danielruss commented 2 years ago

string.replace(/regex/) does not work with recursive patterns. I had to create a function that given the start of a radio button find the appropriate end of the button, the appropriate displayif string, and the appropriate label (up to end-of-line).

It appears to work, please check my code and let me know if you find anyhing that fails.

Thank you!!!