Skip to content

Conversation

@misraved
Copy link
Contributor

@misraved misraved commented Dec 2, 2025

Example query results

Results
Add example SQL query results here (please include the input queries as well)

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors YAML document parsing to correctly handle YAML document separators by using a regex-based approach instead of a simple string split. The change prevents false splits on --- that appear inside block scalars or other string values.

Key Changes

  • Replaced strings.Split(string(content), "---") with a new splitYAMLDocuments() function that uses regex to match valid YAML document separators
  • Added comprehensive documentation explaining the rationale for the change

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Yaml stream separator in a string breaks parsing manifests

2 participants