Github user neykov commented on the issue:
https://github.com/apache/brooklyn-server/pull/589
+1 for `containsMatch` (or just `contains`) with `MULTILINE` + `DOTALL`.
It covers all use cases:
* simple contains: `xxx`
* match all: `^.*xxx.*$`
* match single line: `(^|\n)xxx(\n|$)`
* match across lines: `expected value:\n\txxx`
Most of our tests are the "simple contains" case anyway.
I think it's still worth changing `matches` to `MULTILINE` + `DOTALL`. For
existing single-line tests there's no change and for multi-line results it's
more natural (much like the IDE search works).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---