Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Regex amount parsing wrong #19

@oceanapplications

Description

@oceanapplications

The function createAmountFromStr($amountString) seems to have some bugs with strings that aren't number formatted and have one or more trailing 0s. For example, 750 will parse as 7.5 but 50 parses fine.

Here's a playground link demonstrating the issue. http://tehplayground.com/#SSeFA3M80

Thanks

Metadata

Metadata

Assignees

Labels

bugThis is a bug report issue or PR that fixes a bug

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions