Ruby-RTF icon indicating copy to clipboard operation
Ruby-RTF copied to clipboard

Fix empty parse control value

Open dersnek opened this issue 1 year ago • 3 comments

Some text combinations lead to 0 matches on this line, which causes the parser to fail with an error. The parser works perfectly if we just skip these matches and do not try to assign anything.

dersnek avatar Oct 10 '24 13:10 dersnek

Is it possible to add a spec test for this case so we can make sure it doesn't creap back into the code?

dj2 avatar Oct 11 '24 21:10 dj2

Is it possible to add a spec test for this case so we can make sure it doesn't creap back into the code?

Sure, I'll to that! Give me couple days

dersnek avatar Oct 13 '24 14:10 dersnek

Is it possible to add a spec test for this case so we can make sure it doesn't creap back into the code?

Added, please take a look

dersnek avatar Oct 16 '24 17:10 dersnek