Parse semantic versions more strictly
Pathoschild opened this issue ยท 1 comments
SMAPI is parsing semantic version strings more often (e.g. #308), so we should make sure it parses them in a sane way to avoid future issues. It currently has pretty naive parse logic which handles all sorts of invalid input:
input | parsed as |
---|---|
1 | 1.0.0 |
1.2.3.4 | 1.2.3-4 |
1..2..3 | 1.0.0-2..3 |
1.apple | 1.0.0-apple |