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

Intl Exception when parse currency with symbol as suffix #829

Open
Paroca72 opened this issue Apr 27, 2024 · 0 comments
Open

Intl Exception when parse currency with symbol as suffix #829

Paroca72 opened this issue Apr 27, 2024 · 0 comments
Labels
package:intl type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@Paroca72
Copy link

Hello,

Intl wrong to parse currency with symbol as suffix.

To Reproduce
If run the following code an exception will raise:

NumberFormat formatter = NumberFormat.currency(
      locale: "it_IT",
      name: "Euro Member Countries",
      symbol: "€",
      decimalDigits: 2,
    );
formatter.parse("0,00 €");

Raise:
Invalid Number: 0,00 €

Intl package:
0.19.0

Thanks

@Paroca72 Paroca72 added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:intl type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants