Skip to content

Escaped characters don't get properly unescaped #16

@nostradani

Description

@nostradani

When java writes a properties file, the following characters get escaped: =:!#

{ "Caution" => "=:!#" } will be written by Java as Caution=\=\:\!\#

In general, Java seems to simply omit single backslashes when parsing a properties file
Example: "Invalid=x\x" will be read as {"Invalid" => "xx" }

However this gem doesn't respect that. When reading the first properties file, it will become {"Caution" => "\=\:\!\#" }
Writing that again, it will become Caution=\\=\\:\\!\\#

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