Skip to content

Escaped string characters are getting extra backslashes #20

Closed

Description

@paulirwin

Java string of "\\R" is getting translated to "\\\\R".

Activity

  1. skpandey885 commented on Jul 1, 2021

    @skpandey885

    Can I Fix This One?

  2. paulirwin commented on Jul 1, 2021

    @paulirwin
    OwnerAuthor

    @skpandey885 Absolutely! PRs welcome.

  3. skpandey885 commented on Jul 3, 2021

    @skpandey885

    Can You Explain a Bit more..What I Have To do? I am Beginner So I need Your Help, Sir!

  4. paulirwin commented on Jul 4, 2021

    @paulirwin
    OwnerAuthor

    I'd recommend starting with a unit test that tests what the behavior should be. This test will fail, of course. (This is known as red/green testing.) Then debug and step through the code to see if you can find where the issue is. I believe you may start looking into the StringLiteralExpressionVisitor class. Most likely code needs to be added to fix this issue. Also please make sure this works for character literals as well (i.e. '\n' and '\\').

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions