Fix open ended ranges (#4677)

* Make open ended ranges more open ended

* Add test
This commit is contained in:
JT
2022-02-28 11:15:31 -05:00
committed by GitHub
parent b09acdb7f9
commit cb5c61d217
3 changed files with 12 additions and 2 deletions

View File

@ -138,6 +138,11 @@ impl Command for Table {
let base_pipeline = val.to_base_value(span)?.into_pipeline_data();
self.run(engine_state, stack, call, base_pipeline)
}
PipelineData::Value(x @ Value::Range { .. }, ..) => Ok(Value::String {
val: x.into_string("", &config),
span: call.head,
}
.into_pipeline_data()),
x => Ok(x),
}
}