Skip to content

Intl Exception when parse currency with symbol as suffix #829

@Paroca72

Description

@Paroca72

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    package:intltype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions