Skip to content

Strange behaviour with backslash followed by curly braces #94

@seanamosw

Description

@seanamosw

I am getting an unexpected result when the following format and settings are used.

var formatter = Smart.CreateDefaultSmartFormat();
formatter.Settings.ConvertCharacterStringLiterals = false;

var result = formatter.Format("\\{Test}", new { Test = "Hello" });

Expected Result: Hello
Actual Result: {Test

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions