Skip to content

wrong parse result #3

@mrbrdo

Description

@mrbrdo

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions