Closed aluttik closed 5 years ago
Inside of certain blocks such as map, "directives" may contain whitespace characters, so we need to account for that.
map
For example, the inside of this block:
map $a $b { 'Client A' 'value'; }
would be converted to this json:
{ "directive": "Client A", "args": ["value"] }
but that json would be converted back to nginx as:
map $a $b { Client A value; }
Inside of certain blocks such as
map
, "directives" may contain whitespace characters, so we need to account for that.For example, the inside of this block:
would be converted to this json:
but that json would be converted back to nginx as: