mirror of
https://github.com/nushell/nushell.git
synced 2024-11-08 01:24:38 +01:00
parent
7490392eb9
commit
2fe14a7a5a
@ -124,7 +124,7 @@ impl Command for Touch {
|
||||
let size = val.len();
|
||||
|
||||
// Each stamp is a 2 digit number and the whole stamp must not be less than 4 or greater than 7 pairs
|
||||
if (size % 2 != 0 || !(8..=14).contains(&size)) || val.parse::<usize>().is_err() {
|
||||
if (size % 2 != 0 || !(8..=14).contains(&size)) || val.parse::<u64>().is_err() {
|
||||
return Err(ShellError::UnsupportedInput(
|
||||
"input has an invalid timestamp".to_string(),
|
||||
span,
|
||||
|
Loading…
Reference in New Issue
Block a user