forked from extern/nushell
Merge pull request #847 from Detegr/master
Fix size comparison in 'where size'
This commit is contained in:
commit
94429d781f
@ -78,9 +78,9 @@ fn unit_size(input: &str, bare_span: Span) -> IResult<&str, (Spanned<RawNumber>,
|
||||
value(Unit::B, alt((tag("B"), tag("b")))),
|
||||
value(Unit::KB, alt((tag("KB"), tag("kb"), tag("Kb")))),
|
||||
value(Unit::MB, alt((tag("MB"), tag("mb"), tag("Mb")))),
|
||||
value(Unit::MB, alt((tag("GB"), tag("gb"), tag("Gb")))),
|
||||
value(Unit::MB, alt((tag("TB"), tag("tb"), tag("Tb")))),
|
||||
value(Unit::MB, alt((tag("PB"), tag("pb"), tag("Pb")))),
|
||||
value(Unit::GB, alt((tag("GB"), tag("gb"), tag("Gb")))),
|
||||
value(Unit::TB, alt((tag("TB"), tag("tb"), tag("Tb")))),
|
||||
value(Unit::PB, alt((tag("PB"), tag("pb"), tag("Pb")))),
|
||||
)))(input)?;
|
||||
|
||||
let start_span = number.span.end();
|
||||
|
Loading…
Reference in New Issue
Block a user