yaml
yaml copied to clipboard
Parsing of a quoted string containing colon+space causes problems
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.