Repository navigation
Commit ab6be20
authored
Parse escaped quotes in OpenMetrics exemplar label values (#1230)
The exemplar scanner in _parse_remaining_text flipped its in-quotes
state on every double quote, so a label value like x"y, which the
writer emits as x\"y, made the whole line fail with "Invalid line".
Ignore quotes preceded by an odd number of backslashes.
Signed-off-by: spicysharkco <321699413+spicysharkco@users.noreply.github.com>1 parent fa7efa1 commit ab6be20
2 files changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | 157 | | |
159 | | - | |
160 | | - | |
| 158 | + | |
| 159 | + | |
161 | 160 | | |
162 | 161 | | |
163 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
573 | 584 | | |
574 | 585 | | |
575 | 586 | | |
| |||
0 commit comments