mirror of
https://github.com/denisidoro/navi.git
synced 2024-10-03 21:27:21 +03:00
Merge 5db79d9828
into e0943c39cf
This commit is contained in:
commit
0da52f3a2e
@ -43,7 +43,7 @@ _navi_input | _navi_map_fn | _navi_nonewline"#
|
||||
fn get_column(text: String, column: Option<u8>, delimiter: Option<&str>) -> String {
|
||||
if let Some(c) = column {
|
||||
let mut result = String::from("");
|
||||
let re = regex::Regex::new(delimiter.unwrap_or(r"\s\s+")).expect("Invalid regex");
|
||||
let re = regex::Regex::new(delimiter.unwrap_or(r"\s+")).expect("Invalid regex");
|
||||
for line in text.split('\n') {
|
||||
if (line).is_empty() {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user