Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
KAFKA-8774: Regex can be found anywhere in config value #7197
Signed-off-by: Arjun Satish firstname.lastname@example.org
The original method incorrectly used matcher.matches() instead of matcher.find(). The former method expects the entire string to match the regex, whereas the second one can find a pattern anywhere within the input string (which fits this use case more correctly).
Added unit tests.
Should be backported to 2.0.
Committer Checklist (excluded from commit message)
Updated a system test, here is a clean run https://jenkins.confluent.io/job/system-test-kafka-branch-builder/2884/