Skip to content

Commit 199c4d4

Browse files
author
Devdutt Shenoi
committed
fix: allow empty
1 parent a37d368 commit 199c4d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/event/format/known_schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ where
5454
#[derive(Debug, Default, Deserialize)]
5555
struct Pattern {
5656
/// Regular expression pattern used to match and capture fields from log strings
57-
#[serde(deserialize_with = "deserialize_regex")]
57+
#[serde(deserialize_with = "deserialize_regex", default)]
5858
pattern: Option<Regex>,
5959
// Maps field names to regex capture groups
6060
fields: HashSet<String>,

0 commit comments

Comments
 (0)