Skip to content
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

fix: escape inner double quotes #440

Merged
merged 2 commits into from
Aug 7, 2024
Merged

fix: escape inner double quotes #440

merged 2 commits into from
Aug 7, 2024

Conversation

flytaly
Copy link
Contributor

@flytaly flytaly commented Aug 7, 2024

Fix for #389

If the note title contains double quotes, JSON output (like zk list -Pqf json) becomes broken because the inner quotes are not escaped inside the Link field.

Link: newLazyStringer(func() string {

Copy link
Member

@tjex tjex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhhhh! NICE ONE!
Thanks so much for this.
I had made a tesh test case when I was working on this issue. So I've confirmed this pr makes that test pass, and have committed it to this branch.

Thanks again!

@tjex tjex added this to the 0.14.2 milestone Aug 7, 2024
@tjex tjex merged commit 4a51e39 into zk-org:main Aug 7, 2024
3 checks passed
@tjex tjex mentioned this pull request Jan 26, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants