Commit 5b1a54c
RealDiligent
fix(content-lane): split a scalar source field's multi-item block sequence per URL
parseSimpleFrontmatter collapses a block sequence to a comma-joined string, and for a
scalar source field that value goes to scalarSourceUrlValues, which only splits the
flow (`[a, b]`) form. So a documentationUrl authored as a two-item block sequence
yielded the single string "https://a.example/1, https://b.example/2"; new URL() throws
on it, producing outcome invalid_url / hard_failure and failing the whole
source-evidence report on a submission whose sources are both live. #8016's tests
covered only the single-item case (a one-item join is a valid URL), so it went
undetected.
Add scalarSequenceItems, which reads the raw frontmatter block and returns one value
per `- item` for a bare block sequence (mirroring listSourceUrlValues), used by the
scalar-field loop; a non-sequence form (inline, flow, or block scalar) returns null and
keeps the existing scalar reader. A single-item sequence still yields exactly one URL,
and a genuinely malformed value still hard-fails.
Closes #96681 parent af98111 commit 5b1a54c
2 files changed
Lines changed: 70 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
231 | 256 | | |
232 | 257 | | |
233 | 258 | | |
| |||
244 | 269 | | |
245 | 270 | | |
246 | 271 | | |
247 | | - | |
248 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
249 | 284 | | |
250 | 285 | | |
251 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
103 | 121 | | |
104 | 122 | | |
105 | 123 | | |
| |||
359 | 377 | | |
360 | 378 | | |
361 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
362 | 395 | | |
363 | 396 | | |
364 | 397 | | |
| |||
0 commit comments