Skip to content

Conversation

@rudo-thomas
Copy link
Contributor

Problem: On js and native targets std.parseYaml() mishandles input where "---" is not at the beginning of the line. (The jvm target is fine.)

Fix: Only match "---" at the beginning of the line. Also don't require a newline after it.

Note that there are other corner cases that are still broken, but for those I'll file a bug against the underlying scala-yaml library.

@rudo-thomas rudo-thomas force-pushed the rudo-thomas/fix-std.parseYaml branch from 6680c5b to 583f580 Compare June 24, 2025 11:55
Problem: On js and native targets std.parseYaml() mishandles input where
"---" is not at the beginning of the line. (The jvm target is fine.)

Fix: Only match "---" at the beginning of the line. Also don't require a
newline after it.

Note that there are other corner cases that are still broken, but for
those I'll file a bug against the underlying scala-yaml library.
@rudo-thomas rudo-thomas force-pushed the rudo-thomas/fix-std.parseYaml branch from 583f580 to db47c30 Compare June 24, 2025 12:34
@stephenamar-db stephenamar-db merged commit 224be2b into databricks:master Jun 25, 2025
6 checks passed
@rudo-thomas rudo-thomas deleted the rudo-thomas/fix-std.parseYaml branch June 26, 2025 16:54
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.

3 participants