You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using a custom helper in a escaped string, and escaping a string argument to that helper is not handled correctly by Handlebars.Net #584
A clear and concise description of what the bug is.
Expected behavior:
A clear and concise description of what you expected to happen.
Working unit-test
[Fact]publicvoidSelectToken_WithComplexTemplate(){// ArrangeconststringrequestAsJson=""" { "bodyAsJson": { "pricingContext": { "market": "US" } } } """;varrequest=JsonConvert.DeserializeObject(requestAsJson);// Use single quotes for the JsonPath else it will be parsed correctly by Handlebars.Netvaraction=_handlebarsContext.Compile("{\r\n\"market\": \"{{JsonPath.SelectToken bodyAsJson '$.pricingContext.market'}}\",\r\n\"languages\": \"en\"\r\n}");// Actvarresult=action(request);// Assertvarexpected=""" { "market": "US", "languages": "en" } """;result.Should().Be(expected);}
changed the title [-]Using a custom helper in a esacped string, and escaping a string argument to that helper is not handled correctly by Handlebars.Net[/-][+]Using a custom helper in a escaped string, and escaping a string argument to that helper is not handled correctly by Handlebars.Net[/+]on May 29, 2024
Activity
[-]Using a custom helper in a esacped string, and escaping a string argument to that helper is not handled correctly by Handlebars.Net[/-][+]Using a custom helper in a escaped string, and escaping a string argument to that helper is not handled correctly by Handlebars.Net[/+]fix: handle escaped double-quotes in delimited string literal argumen…
Merge pull request #621 from Handlebars-Net/worktree-agent-a51a71da28…