I am attempting to use regex in a yaml automation file for docker to exclude a path.
When attempting with these options:
excludePaths:
- "^.*\.cache\.html"
I get this error:
Unexpected error accessing file /zap/wrk/automation.yaml : while scanning a double-quoted scalar
in 'reader', line 12, column 7:
- "^.*\.cache\.html"
^
found unknown escape character .(46)
in 'reader', line 12, column 12:
- "^.*\.cache\.html"
^
Which is fair as I am using an escape character. So i escaped the escape character:
excludePaths:
- "^.*\\.cache\\.html"
is this a bug or am i implementing this wrong?