Skip to content

fix(cli): reject malformed terminal version strings - #815

Open
davidwoood wants to merge 1 commit into
protofire:developfrom
davidwoood:my_feature
Open

davidwoood wants to merge 1 commit into
protofire:developfrom
davidwoood:my_feature

Conversation

@davidwoood

Copy link
Copy Markdown

Summary

Parse terminal versions strictly instead of accepting prefixes such as 3.0-invalid or 1.71beta. Invalid and unsafe version values now follow the existing unknown-version fallback used for terminal hyperlink support.

Tests

Add malformed-version regression assertions. npm test -- --grep 'terminal hyperlink detection' passed (8 tests); git diff --check passed.

Signed-off-by: davidwoood <pengzhujianren@outlook.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant