crossplane icon indicating copy to clipboard operation
crossplane copied to clipboard

Arguments escape not uniform

Open faceair opened this issue 2 years ago • 1 comments

Describe the bug

After the crossplane parse, I expect all arguments to be unescaped.

https://github.com/nginxinc/crossplane/blob/v0.5.7/tests/test_parse.py#L946 Here, arg1 is escaped, but arg2 is unescaped, where the data format is not uniform. My program is confused when dealing with the arguments of the directive and doesn't know when it should be manually unescape.

Expected behavior

'args': ['#arg 1', '#arg 2']

faceair avatar Sep 20 '21 10:09 faceair

https://github.com/faceair/nginx-parser/blob/171aa974ea5218140032e13872840359a1033162/parser_test.go#L84 I wrote a parser myself to solve this problem.

faceair avatar Oct 24 '21 05:10 faceair