mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 16:33:37 +01:00
Updates default minimum spaces to allow single spaces by default.
This commit is contained in:
parent
0d2044e72e
commit
f8d44e732b
@ -12,7 +12,7 @@ pub struct FromSSVArgs {
|
||||
}
|
||||
|
||||
const STRING_REPRESENTATION: &str = "from-ssv";
|
||||
const DEFAULT_ALLOWED_SPACES: usize = 0;
|
||||
const DEFAULT_MINIMUM_SPACES: usize = 2;
|
||||
|
||||
impl WholeStreamCommand for FromSSV {
|
||||
fn name(&self) -> &str {
|
||||
@ -116,7 +116,7 @@ fn from_ssv(
|
||||
let mut latest_tag: Option<Tag> = None;
|
||||
let split_at = match minimum_spaces {
|
||||
Some(number) => number.item,
|
||||
None => DEFAULT_ALLOWED_SPACES
|
||||
None => DEFAULT_MINIMUM_SPACES
|
||||
};
|
||||
|
||||
for value in values {
|
||||
|
Loading…
Reference in New Issue
Block a user