Commit fe92162
authored
fix: Normalize v prefix on both sides of version check (#199)
The inline "Not installed" decoration compared a v-stripped requested
version against the raw resolved version, so any tool whose resolved
version keeps the v prefix (git-sourced pipx entries like
pipx:github/owner/repo pinned to a tag such as v0.8.7) was flagged as
not installed even when correctly installed and active.
Strip the prefix on both sides before the startsWith check so the
comparison is symmetric. PyPI-style tools keep working because they
have no v prefix to strip.1 parent cd68a7c commit fe92162
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
136 | 140 | | |
| 141 | + | |
137 | 142 | | |
138 | 143 | | |
139 | | - | |
| 144 | + | |
140 | 145 | | |
141 | 146 | | |
142 | 147 | | |
| |||
0 commit comments