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 usage of negative numbers in Number value object #53

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

eaborodkin
Copy link
Contributor

@eaborodkin eaborodkin commented Nov 26, 2024

Number ValueObject didn't work with negative numbers due to incorrect regex in the SanitizesNumbers::sanitize(). Now is fixed.

… regex in the SanitizesNumbers::sanitize(). Now is fixed.
@eaborodkin eaborodkin changed the title Number ValueObject didn't work with negative numbers due to incorrect… Incorrect Number ValueObject behavior. Nov 26, 2024
@michael-rubel
Copy link
Owner

Could you please add tests for the use cases you've described?

@eaborodkin
Copy link
Contributor Author

Could you please add tests for the use cases you've described?

Done.

@michael-rubel michael-rubel changed the title Incorrect Number ValueObject behavior. Fix usage of negative numbers in Number value object Nov 27, 2024
@michael-rubel michael-rubel added the bug Something isn't working label Nov 27, 2024
@michael-rubel michael-rubel merged commit 30bc0da into michael-rubel:main Nov 27, 2024
18 checks passed
@michael-rubel
Copy link
Owner

Thanks @eaborodkin! Tagged a 7.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants