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

JS: fix issue with zero-column yaml locations #11157

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented Nov 8, 2022

The alert renderer does not allow non-empty locations to end at the start of a line, but SnakeYaml emits such locations for multiline strings.

When the YAML extractor is about to emit a non-empty location that ends at column zero, it will instead move the end position backwards until it sees a non-line break character.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant