Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe00444

Browse files
committed
for grep, join on space
1 parent 15c8fa0 commit fe00444

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "csvchk"
3-
version = "0.2.2"
3+
version = "0.2.3"
44
edition = "2021"
55
readme = "README.md"
66
authors = ["Ken Youens-Clark <[email protected]>"]

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ fn check(fh: impl BufRead, filename: &str, args: &Args) -> Result<()> {
116116
let values: Vec<&str> = record.iter().collect();
117117

118118
if let Some(re) = &grep {
119-
if !re.is_match(&values.join("")) {
119+
if !re.is_match(&values.join(" ")) {
120120
continue;
121121
}
122122
}

0 commit comments

Comments
 (0)