angle-grinder icon indicating copy to clipboard operation
angle-grinder copied to clipboard

Handle missing optional matches

Open ehaas opened this issue 1 year ago • 1 comments

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

Closes #193

ehaas avatar May 24 '24 16:05 ehaas

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.

ehaas avatar May 24 '24 16:05 ehaas

None seems right here. Thanks!!

rcoh avatar May 26 '24 00:05 rcoh