GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
I get the wrong result with the following string
str = " 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:
Thanks for your work btw, useful script :)