Commit 7aeede4
tazhate
fix(versioncheck): fix parseVersionsGen for aligned map entries
The parser used `: "` (4-byte needle including both quotes) to detect
and split client entries. For aligned entries like:
"": "image:tag",
the space between `:` and the opening `"` is multiple characters, so
the 4-byte needle was not found and the entry was silently dropped.
Replace the brittle needle split with a regex that handles any number
of spaces between key, colon, and value:
^"([^"]*)"\s*:\s*"([^"]*)"\s*,?\s*$
Also narrow the test command to skip controller tests that require
a running Kubernetes environment.1 parent df3d342 commit 7aeede4
2 files changed
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
256 | 263 | | |
257 | 264 | | |
258 | 265 | | |
| |||
289 | 296 | | |
290 | 297 | | |
291 | 298 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
300 | 302 | | |
301 | 303 | | |
302 | 304 | | |
| |||
0 commit comments