Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle missing optional matches #204

Merged
merged 1 commit into from
May 26, 2024
Merged

Handle missing optional matches #204

merged 1 commit into from
May 26, 2024

Conversation

ehaas
Copy link
Contributor

@ehaas ehaas commented May 24, 2024

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

Closes #193

@ehaas
Copy link
Contributor Author

ehaas commented May 24, 2024

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
Copy link
Owner

rcoh commented May 26, 2024

None seems right here. Thanks!!

@rcoh rcoh enabled auto-merge (squash) May 26, 2024 00:36
The Index trait for Captures panics if there is no match at a given
index.

Closes rcoh#193
@rcoh rcoh merged commit ace5b1f into rcoh:main May 26, 2024
8 checks passed
@ehaas ehaas deleted the optional-match branch May 27, 2024 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash while parsing netfilter using regex
2 participants