We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ebdf8c commit c8095c0Copy full SHA for c8095c0
clap_lex/src/lib.rs
@@ -505,9 +505,9 @@ fn is_number(arg: &str) -> bool {
505
// optional exponent, and only if it's not the first character.
506
b'.' if !seen_dot && position_of_e.is_none() && i > 0 => seen_dot = true,
507
508
- // Allow an exponent `e` but only at most one after the first
+ // Allow an exponent `e`/`E` but only at most one after the first
509
// character.
510
- b'e' if position_of_e.is_none() && i > 0 => position_of_e = Some(i),
+ b'e' | b'E' if position_of_e.is_none() && i > 0 => position_of_e = Some(i),
511
512
_ => return false,
513
}
0 commit comments