yaml icon indicating copy to clipboard operation
yaml copied to clipboard

Parsing of a quoted string containing colon+space causes problems

Open delkano opened this issue 1 year ago • 0 comments

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.

delkano avatar Jan 31 '24 17:01 delkano