Commit 0517b3e
fix: guard caret pin hint in plain-text fallback path
The Rich rendering path already guarded the caret pin hint with
'if latest_version:', but the plain-text fallback still used
sorted_versions[0].version unconditionally, which could produce
invalid specifiers like '#^nightly' for non-semver entries.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent d500d79 commit 0517b3e
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
360 | 361 | | |
361 | 362 | | |
362 | 363 | | |
| |||
0 commit comments