Commit 6bdf63b
authored
fix: prevent unicode escaping of '+' in variable get output (#183)
JsonNode.ToJsonString() uses JavaScriptEncoder.Default which
unnecessarily escapes '+' (U+002B) as \u002b in the output.
- VariableGetPipeline: use result.ToString() for console display to get
the raw string value without JSON encoding artifacts
- JsonNodeOutputFormatter: pass
JavaScriptEncoder.UnsafeRelaxedJsonEscaping to ToJsonString() so
--format json output preserves '+' literally1 parent 0de0b14 commit 6bdf63b
2 files changed
Lines changed: 9 additions & 2 deletions
File tree
- src/Confix.Tool/src/Confix.Library
- Output
- Pipelines/Variable
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
9 | 16 | | |
10 | 17 | | |
11 | 18 | | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
16 | | - | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments