rcoh / angle-grinder

Slice and dice logs on the command line
MIT License
3.5k stars 72 forks source link

Handle missing optional matches #204

Closed ehaas closed 4 months ago

ehaas commented 4 months ago

The Index trait for Captures panics if there is no match at a given index.

Closes #193

ehaas commented 4 months ago

Should a missing match get an empty string instead of data::Value::None? I could see None in the final output being confusing since that could also be a string match.

rcoh commented 4 months ago

None seems right here. Thanks!!