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

Parsing of a quoted string containing colon+space causes problems #18

Open
delkano opened this issue Jan 31, 2024 · 0 comments
Open

Parsing of a quoted string containing colon+space causes problems #18

delkano opened this issue Jan 31, 2024 · 0 comments

Comments

@delkano
Copy link

delkano commented Jan 31, 2024

I have a file containing a line like this:
title: "D: presentation"

The library loads and parses without error, but when I try to use the string, I get a stdClass could not be converted to string error.

Looking (print_r) into the object gives me something even weirder:
stdClass Object ( [] => presentation")
The object seems to have an anonymous attribute containing everything behind the colon, including the quote.

If, however, I remove the space after the colon and leave the quoted string as "D:presentation" there's no issue, everything works as expected.

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

No branches or pull requests

1 participant