Commit fadcaaa
committed
cli: Fix double-quoted map keys in diff UI
A previous change added missing quoting around object keys which do not
parse as barewords. At the same time we introduced a bug where map keys
could be double-quoted, due to calling the `displayAttributeName` helper
function (to quote non-bareword keys) then using the `writeValue` method
(which quotes all strings).
This commit fixes this and adds test coverage for map keys which require
quoting.1 parent 8eaf7fe commit fadcaaa
2 files changed
+16
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1473 | 1473 | | |
1474 | 1474 | | |
1475 | 1475 | | |
1476 | | - | |
1477 | 1476 | | |
1478 | 1477 | | |
1479 | 1478 | | |
1480 | 1479 | | |
1481 | 1480 | | |
1482 | | - | |
1483 | | - | |
1484 | | - | |
| 1481 | + | |
| 1482 | + | |
1485 | 1483 | | |
1486 | 1484 | | |
1487 | 1485 | | |
1488 | 1486 | | |
1489 | 1487 | | |
1490 | 1488 | | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
| 1489 | + | |
| 1490 | + | |
1494 | 1491 | | |
1495 | 1492 | | |
1496 | 1493 | | |
| |||
1533 | 1530 | | |
1534 | 1531 | | |
1535 | 1532 | | |
1536 | | - | |
1537 | | - | |
| 1533 | + | |
| 1534 | + | |
1538 | 1535 | | |
1539 | 1536 | | |
1540 | 1537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2115 | 2115 | | |
2116 | 2116 | | |
2117 | 2117 | | |
| 2118 | + | |
2118 | 2119 | | |
2119 | 2120 | | |
2120 | 2121 | | |
| |||
2129 | 2130 | | |
2130 | 2131 | | |
2131 | 2132 | | |
| 2133 | + | |
2132 | 2134 | | |
2133 | 2135 | | |
2134 | 2136 | | |
| |||
2148 | 2150 | | |
2149 | 2151 | | |
2150 | 2152 | | |
| 2153 | + | |
2151 | 2154 | | |
2152 | 2155 | | |
2153 | 2156 | | |
| |||
2162 | 2165 | | |
2163 | 2166 | | |
2164 | 2167 | | |
| 2168 | + | |
2165 | 2169 | | |
2166 | 2170 | | |
2167 | 2171 | | |
| |||
2183 | 2187 | | |
2184 | 2188 | | |
2185 | 2189 | | |
2186 | | - | |
2187 | | - | |
2188 | | - | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
2189 | 2194 | | |
2190 | 2195 | | |
2191 | 2196 | | |
| |||
2200 | 2205 | | |
2201 | 2206 | | |
2202 | 2207 | | |
2203 | | - | |
| 2208 | + | |
| 2209 | + | |
2204 | 2210 | | |
2205 | 2211 | | |
2206 | 2212 | | |
| |||
0 commit comments