-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: support CLRF #15
Conversation
Actually nvm, it's supported quite correctly, I think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is ok, right?
Don't merge it yet. |
309a12d
to
c989ec5
Compare
@@ -0,0 +1,6 @@ | |||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit weird case.
Usually, our YAML files start with actual nodes... but not on this occasion.
I decided to report 0 line and 0 character if a given path cannot be found in a document.
Reporting actual character does not make much sense since there is no node there anyway.
Ideally, we would report the second line, as this is where the actual document starts.
@marbemac thoughts? Going with the latter idea will require a few changes, but it's doable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is ---
represented in the AST? What happens in the following situation - what line is Foo reported as?
---
---
Foo
}); | ||
|
||
it('should handle null-ish items', () => { | ||
const result = parseWithPointers(`----~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discovered this issue while playing around with fixtures.
Unfortunately, yaml-ast-parser typings are broken, and they don't take nulls into account at all, even though most of the nodes or properties are nullable.
🎉 This PR is included in version 2.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.