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

comment after - causes subsequent queries to fail #389

Closed
zellyn opened this issue Sep 14, 2023 · 3 comments · Fixed by #390
Closed

comment after - causes subsequent queries to fail #389

zellyn opened this issue Sep 14, 2023 · 3 comments · Fixed by #390
Labels
bug Something isn't working

Comments

@zellyn
Copy link

zellyn commented Sep 14, 2023

Describe the bug
A comment after a minus sign on its own line introducing an object can cause subsequent queries to fail.

To Reproduce

https://go.dev/play/p/vh9dhtCnq-e

Expected behavior
A comment after an object minus sign should allow queries to work.

Version Variables

  • Go version: 1.21
  • go-yaml's Version: v1.11.1
@zellyn zellyn added the bug Something isn't working label Sep 14, 2023
@goccy
Copy link
Owner

goccy commented Sep 15, 2023

Thank you for your report ! I've fixed this issue with #390

@goccy
Copy link
Owner

goccy commented Sep 15, 2023

I've released https://github.com/goccy/go-yaml/releases/tag/v.1.11.2 for fixing this problem

@zellyn
Copy link
Author

zellyn commented Sep 15, 2023

Oh wow! Thank you, that was fast! 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants