Page 1 of 1

bug on RenderedStringParser processing `[' at the end of str

Posted: Wed Mar 02, 2011 03:28
by zaexage
it seems that the parser will drop the last section if the to-be-parsed string is ended with a `['
e.g.: hello world\[

The parse() function will detect the last `[', but do nothing and try to continue to find more content with advancing curr_pos by 1.
As this `[' is the last character in string, the loop in parse() will terminate and the content will be lost;

Re: bug on RenderedStringParser processing `[' at the end of

Posted: Wed Mar 02, 2011 08:11
by CrazyEddie
Thanks for this, looks like a good one! I will look into it.

CE.