wrong parse result #3

mrbrdo opened this Issue Jun 12, 2012 · 0 comments


None yet
1 participant

mrbrdo commented Jun 12, 2012

I get the wrong result with the following string

str = "[1] pry(main)> (p = \u001B[1;34m\u001B[4mPost\u001B[0m.find(\u001B[32m\u001B[1;32m"\u001B[0m\u001B[32mlala\u001B[1;32m"\u001B[0m\u001B[32m\u001B[0m))&&\u001B[1;36mnil\u001B[0m\n"

The text is:

pry(main)> (p = Post.find("lala"))&&nil

As you can see before "))&&" there is [0m, so these 4 characters should be without any style. However the parser returns:

foreground: "green"
text: "))&&"

Thanks for your work btw, useful script :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment