Skip to content

Commit 5a3e29b

Browse files
committed
fix: improve validation for decimal text exponent handling
1 parent 100bba6 commit 5a3e29b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

decimal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ func validateDecimalText(text string) error {
361361
seenDot = true
362362
i++
363363
case ch == 'e' || ch == 'E':
364-
if digits == 0 && !seenDot {
364+
if digits == 0 {
365365
return fmt.Errorf("decimal literal exponent without mantissa")
366366
}
367367
i++

0 commit comments

Comments
 (0)