-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve quoted string flexibility #177
Conversation
And also use double-quoted strings for strings with "'", which minimizes escaping
@eemeli, looks like checks failed not because of my changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finally got around to this; apologies for the delay. I like the sense of this, but I think I'd prefer a boolean option, given that is has only two valid values.
Thanks for your review, I'll change the code according to your comments ASAP |
Co-authored-by: Eemeli Aro <[email protected]>
Thank you for your suggestions, it's much better now |
Thank you @Himura2la! |
@eemeli thanks for merging this helpful option. When do you plan to make it available in npm? |
Sorry, missed your last comment. I'll try and get a |
@eemeli, just a friendly bump: we can't close a ticket in our system unless this PR is released. |
Sorry it took so long, but 2.0.0-0 is now finally out, including this fix. Release notes |
We use this library to update files, which are also updated by another (YamlDotNet) library, and we have quoting style not in sync, which generates useless changes. I added an option to choose the default quoting style, and also tried to avoid escaped single quotes within string content.