1
0
mirror of https://github.com/json-iterator/go.git synced 2025-08-07 21:52:55 +02:00

#136 strconv.ParseFloat can not validate 1. , added extra validation for this special case

This commit is contained in:
Tao Wen
2017-07-18 22:19:52 +08:00
parent e066e54964
commit 6b6938829d
4 changed files with 46 additions and 2 deletions

View File

@ -13,4 +13,5 @@ var inputs = []string{
"1E1", // valid, e or E
"1ee1", // invalid
"100a", // invalid
"10.", // invalid
}