Skip to content

fix: accept Unicode minus in NewFromString - #428

Open
Archiit19 wants to merge 1 commit into
shopspring:masterfrom
Archiit19:fix/unicode-minus-newfromstring
Open

fix: accept Unicode minus in NewFromString#428
Archiit19 wants to merge 1 commit into
shopspring:masterfrom
Archiit19:fix/unicode-minus-newfromstring

Conversation

@Archiit19

Copy link
Copy Markdown

Some locales and copy-paste sources use U+2212 (−) instead of ASCII '-'. Normalize it before parsing so NewFromString accepts both.

Closes #318

Some locales and copy-paste sources use U+2212 (−) instead of ASCII '-'.
Normalize it before parsing so NewFromString accepts both.

Closes shopspring#318
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NewFromString should accept unicode minus sign

1 participant