This commit is contained in:
KITAGAWA Yasutaka 2024-09-25 10:07:40 -03:00 committed by GitHub
commit 0da52f3a2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;