Skip to content

Try to Match Whole String for is_match#172

Merged
iwillspeak merged 2 commits intomainfrom
is_match_all
Sep 2, 2022
Merged

Try to Match Whole String for is_match#172
iwillspeak merged 2 commits intomainfrom
is_match_all

Conversation

@iwillspeak
Copy link
Copy Markdown
Collaborator

@iwillspeak iwillspeak commented Aug 30, 2022

This shoudl ensure that we choose the longest part of any alterations. This effectively
adds an implicit \Z at the end of the pattern when using it with is_match. Backed by
kkos/oniguruma#270.

Fixes #171

Fixes #171. When a pattern is being used for `is_match` we should Choose
the longest match rather than the first one.
@iwillspeak iwillspeak requested a review from a team August 30, 2022 17:36
@iwillspeak
Copy link
Copy Markdown
Collaborator Author

iwillspeak commented Aug 30, 2022

@adamrodger any chance you can test this out to see if this fully solves your original bug pact-foundation/pact-reference/issues/214? You should be able to use a git reference to replace onig something like this:

[dependencies]
onig = { git = "https://github.com/rust-onig/rust-onig", branch = "is_match_all" }

@rholshausen
Copy link
Copy Markdown

Can confirm this fixes pact-foundation/pact-reference#214

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.

Failure with Valid Input

2 participants