Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): Improve number parsing #2454

Merged
merged 1 commit into from
Sep 26, 2024
Merged

Conversation

sirtimid
Copy link
Contributor

@sirtimid sirtimid commented Sep 13, 2024

Description

This PR introduces a new parseNumber function that safely parses input as a number on cli commands.
Additional tests have been added to ensure this new functionality works correctly.

Security Considerations

none

Scaling Considerations

none

Documentation Considerations

none

Testing Considerations

none

Compatibility Considerations

none

Upgrade Considerations

none

Copy link
Contributor

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sirtimid sirtimid force-pushed the sirtimid/cli-parse-number branch 2 times, most recently from 3b4a975 to 4c026c5 Compare September 20, 2024 10:29
packages/cli/test/number-parse.test.js Outdated Show resolved Hide resolved
packages/cli/test/number-parse.test.js Show resolved Hide resolved
packages/cli/test/number-parse.test.js Outdated Show resolved Hide resolved
packages/cli/src/number-parse.js Outdated Show resolved Hide resolved
packages/cli/test/number-parse.test.js Outdated Show resolved Hide resolved
@sirtimid sirtimid merged commit f63db3a into master Sep 26, 2024
16 checks passed
@sirtimid sirtimid deleted the sirtimid/cli-parse-number branch September 26, 2024 17:28
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.

4 participants