I’m trying to check some sections of a yaml file. Usually using key works fine for one line entries like
ssl_protocols: [“TLSv1.2”]
Q: key “ssl_protocols” of file "config.yaml"
A: [“TLSv1.2”]
T: 4841
If the value contains more than one entry it goes fancy:
ssl_cipher_suites_browser:
- 'ECDHE-RSA-AES256-GCM-SHA384'
- 'ECDHE-ECDSA-AES256-GCM-SHA384'
- 'ECDHE-RSA-AES128-GCM-SHA256'
- 'ECDHE-ECDSA-AES128-GCM-SHA256'
- 'ECDHE-RSA-CHACHA20-POLY1305'
- 'ECDHE-ECDSA-CHACHA20-POLY1305'
- 'DHE-RSA-AES256-GCM-SHA384'
- 'DHE-RSA-AES128-GCM-SHA256'
Key delivers a empty value in this case. Something like
Q: (next lines of it) of lines whose (it contains “ssl_cipher_suites_browser:”) of file "config.yaml"
A: - 'ECDHE-RSA-AES256-GCM-SHA384’
T: 462
returns only the first line. I can imagine something like “preceding text of last “’” of …” but actual I’m running out of ideas.