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

Added localized error message and error parsing for base number type #103

Merged
merged 4 commits into from
Dec 7, 2021

Conversation

btiteux
Copy link
Collaborator

@btiteux btiteux commented Dec 5, 2021

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Internationalization and localization
  • Other (please describe):

What is the current behavior?

The user can type any character in the input field

What is the new behavior?

If the user type an invalid character in the input field. The user will see a localized error message.

Other information

Quality check

Before creating this PR, have you:

  • Followed the code style guideline as described in CONTRIBUTING.md
  • [] Verified that the change work in Release build configuration
  • Checked all unit tests pass

@veler veler added the bug Something isn't working label Dec 5, 2021
Copy link
Collaborator

@veler veler left a comment

Choose a reason for hiding this comment

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

Approved with some suggestions. :)

using System.Globalization;
using System.Linq;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this using necessary?

Copy link
Collaborator Author

@btiteux btiteux Dec 5, 2021

Choose a reason for hiding this comment

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

Oh I didn't see this one

@veler
Copy link
Collaborator

veler commented Dec 5, 2021

Oops, can you please fix the unit tests?

image

@veler veler merged commit 6f12bc7 into main Dec 7, 2021
@veler veler deleted the bugfixes/base-number-error-message branch December 7, 2021 17:33
veler pushed a commit that referenced this pull request Mar 31, 2023
…103)

* added localized error message and error parsing for base number type

* removed unused using and added comment

* refactoring RemoveFormatting for NumberBaseFormatter.

* handle max value for hexadecimal
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