We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97fb15b commit 3e91e40Copy full SHA for 3e91e40
src/uu/seq/src/numberparse.rs
@@ -27,9 +27,10 @@ pub enum ParseNumberError {
27
// need to be too careful.
28
fn compute_num_digits(input: &str, ebd: ExtendedBigDecimal) -> PreciseNumber {
29
let input = input.to_lowercase();
30
+ let input = input.trim_start();
31
32
// Leading + is ignored for this.
- let input = input.trim_start().strip_prefix('+').unwrap_or(&input);
33
+ let input = input.strip_prefix('+').unwrap_or(&input);
34
35
// Integral digits for any hex number is ill-defined (0 is fine as an output)
36
// Fractional digits for an floating hex number is ill-defined, return None
0 commit comments