Skip to content

Unable to escape backslashes correctly #545

@MitchellVermaning

Description

@MitchellVermaning

1. Description

Hello! Thank you for sharing this powerful library.

When I try to use the DynamicExpressionParser.ParseLambda-function with a string value that includes escaped backslashes, it will not parse correctly, which yields unescaped output

2. Exception

There is no exception thrown. Using input

"\"\\\\192.168.1.1\\audio\\new\""

The output is:

\192.168.1.1udio
ew

Adding more slashes does not seem to help, for instance given this input

"\"\\\\192.168.1.1\\\audio\\new\""

the following output will be shown

\192.168.1.1\udio
ew

As you can see it seems impossible to not escape the \a and \n. It would be great if you could have a look at this!

3. Fiddle or Project

You can see the problem on the following dotnetfidle:
https://dotnetfiddle.net/URflOo

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions