Closed addamichal closed 7 years ago
There are similar bugs for other regex meta characters such as { and * ..
We could fix them all now... if it is ever likely such an output is ever used. I guess your PR arose from a problematic situation?
Also perhaps then all the calls to replace should be reimplemented to gain speed
merged PR
Current version does not correctly rewrite expected value, if given value contains brackets. Example:
I created a pull request with proposed fix: https://github.com/kbilsted/StatePrinter/pull/49