Closed mschwager closed 15 hours ago
Actually, it appears double quotes works without the escaping: https://github.com/trailofbits/semgrep-rules/pull/67/commits/54a018aa7a51755322594c35093efbcc41d4c99d.
I'm not sure why I thought these strings needed escaped forward slashes in the first place. Apparently forward slashes do not need to be escaped, and this was only added in YAML 1.2.0 to be backwards compatible with JSON. However, even JSON does not require forward slashes to be escaped, and the original reason for allowing it was something to do with JavaScript code 🤷.
There are two benefits here: