Skip to content

Support the case when a value is missing the ending quote#17

Merged
skalahonza merged 3 commits intoskalahonza:masterfrom
MichaelJJ:Support-no-ending-quote
Jun 18, 2025
Merged

Support the case when a value is missing the ending quote#17
skalahonza merged 3 commits intoskalahonza:masterfrom
MichaelJJ:Support-no-ending-quote

Conversation

@MichaelJJ
Copy link
Contributor

Microsoft INF parsing assumes a newline ends the quoted value

Goal

Closes #16

Background

Microsoft INF parsing and INF validator allows for a value with a starting quote and no ending quote, assuming a newline as the end of the value. Valid Windows INFs are not able to be parsed by this library without this change.

Implementation

Added new line as a supported character to pure value parsing

Testing

Added unit test and verified existing tests pass

Microsoft INF parsing assumes a newline ends the quoted value
Copy link
Owner

@skalahonza skalahonza left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution — it's much appreciated!

Just out of curiosity (and no need for credits or anything like that), what kind of product are you developing that uses this library?

I also noticed your email ends with intel.com. Are you using this library as part of an Intel-related solution? If so, that would be a really cool reference for this little package 😄

If the product is public, I’d love to check it out — feel free to share a link if you’re comfortable!

@skalahonza skalahonza merged commit 38ceba9 into skalahonza:master Jun 18, 2025
1 check passed
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.

Lines missing ending quote failing parsing - INF Spec and Microsoft parsing assume ending quote

2 participants