bug on RenderedStringParser processing `[' at the end of str
Posted: Wed Mar 02, 2011 03:28
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;
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;