-
Notifications
You must be signed in to change notification settings - Fork 115
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
Make custom matcher regexp DOTALL #617
Make custom matcher regexp DOTALL #617
Conversation
@lukas-krecan review plz :-) |
1541899
to
b83fd47
Compare
@@ -216,6 +220,13 @@ void shouldSeeExpectedSource() { | |||
assertThat(listener.getExpectedSource(), equalTo(singletonMap("test", "1"))); | |||
} | |||
|
|||
@Test | |||
void shouldMatchWithLineSeparatorCustomMatcher() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or would be better to update content of test AllAssertJTest, what do you think?
Looks good, thanks. I was thinking about an easy way how to apply DOTALL only on the second dot, but it would not be that easy. Actually, the first dot should not have been a dot, but can't change it without breaking backwards compatibility. |
Released as 2.37.0 |
wow! How fast. Tnx :-) |
We have face an issue, that custom matcher fails comparison in case if input parameter contains line terminators.
To make
(.*)
match everything I suggest to update current regexp to be DOTALLif you need more appropriate example, please take a look here