Commit 9a90b0c
Improve wildcard and x-range detection in semver validation
Enhance the wildcard_or_x_range? method to catch more edge cases:
- Detect standalone wildcards: *, x, X
- Detect wildcard prefixes: *.1.2, x.1.2, X.1.2
- Detect wildcard in middle: 1.*.2, 1.x.2, 1.X.2
- Detect wildcard suffixes: 1.2.*, 1.2.x, 1.2.X
Previous pattern missed some valid npm wildcard patterns.
New pattern is more explicit and comprehensive.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent a6b3636 commit 9a90b0c
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
283 | 287 | | |
284 | 288 | | |
285 | 289 | | |
| |||
0 commit comments