From 76dfcd82faed3c548fc262933aac054ef3a8cb40 Mon Sep 17 00:00:00 2001 From: Arthur Pin Date: Fri, 6 Dec 2024 15:58:40 -0300 Subject: [PATCH] seq: handle scientific notation with uppercase 'E' --- src/uu/seq/src/numberparse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/seq/src/numberparse.rs b/src/uu/seq/src/numberparse.rs index adbaccc11..79e7068e3 100644 --- a/src/uu/seq/src/numberparse.rs +++ b/src/uu/seq/src/numberparse.rs @@ -333,7 +333,7 @@ impl FromStr for PreciseNumber { // number differently depending on its form. This is important // because the form of the input dictates how the output will be // presented. - match (s.find('.'), s.find('e')) { + match (s.find('.'), s.find(['e', 'E'])) { // For example, "123456" or "inf". (None, None) => parse_no_decimal_no_exponent(s), // For example, "123e456" or "1e-2".