Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixed quotes to represent intent of examples #43268
Thank you for your contribution. Unfortunately, the changes made would not work in the second example.
Double quotes and single qutoes in YAML have different escaping requirements that behave similar to other languages. From the YAML spec on double-quoted style:
So any backrefs would have to escape the backslah, e.g.,
The single-quoted style interprets pretty much everything as a literal, with only single quotes having to be escpaed. From the YAML spec on single-quoted style:
That's why it's generally easier to use single quotes for regular expressions in YAML.