magiconair / properties

Java properties scanner for Go
BSD 2-Clause "Simplified" License
323 stars 77 forks source link

Bug(writeComments): Changes comments if \ is included #54

Closed doxsch closed 3 years ago

doxsch commented 3 years ago

When reading comments \ are loaded correctly, but when writing they are then replaced by \\. This leads to wrong comments when writing and reading multiple times.

I assume that it is not necessary to encode the comments.

doxsch commented 3 years ago

Hi @magiconair

Thanks for merging my changes. Would it be possible to release a new version (v1.8.5)?

Best regards

magiconair commented 3 years ago

Fixing tests for older versions now. Then I'll tag. Version parsing was not quite right.

magiconair commented 3 years ago

Tagged.

doxsch commented 3 years ago

Thanks