mirror of
https://github.com/nushell/nushell
synced 2025-01-14 22:24:54 +00:00
Updates default minimum spaces to allow single spaces by default.
This commit is contained in:
parent
0d2044e72e
commit
f8d44e732b
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ pub struct FromSSVArgs {
|
||||||
}
|
}
|
||||||
|
|
||||||
const STRING_REPRESENTATION: &str = "from-ssv";
|
const STRING_REPRESENTATION: &str = "from-ssv";
|
||||||
const DEFAULT_ALLOWED_SPACES: usize = 0;
|
const DEFAULT_MINIMUM_SPACES: usize = 2;
|
||||||
|
|
||||||
impl WholeStreamCommand for FromSSV {
|
impl WholeStreamCommand for FromSSV {
|
||||||
fn name(&self) -> &str {
|
fn name(&self) -> &str {
|
||||||
|
@ -116,7 +116,7 @@ fn from_ssv(
|
||||||
let mut latest_tag: Option<Tag> = None;
|
let mut latest_tag: Option<Tag> = None;
|
||||||
let split_at = match minimum_spaces {
|
let split_at = match minimum_spaces {
|
||||||
Some(number) => number.item,
|
Some(number) => number.item,
|
||||||
None => DEFAULT_ALLOWED_SPACES
|
None => DEFAULT_MINIMUM_SPACES
|
||||||
};
|
};
|
||||||
|
|
||||||
for value in values {
|
for value in values {
|
||||||
|
|
Loading…
Reference in a new issue