Croway commented on PR #30238:
URL: https://github.com/apache/camel/pull/30238#issuecomment-6946018464
Thanks, both reproduced. A wildcard now keeps both readings: `Camel*` is
combined as `Camel.*|(?:Camel*)`, and `my.app*` as `\Qmy.app\E.*|(?:my.app*)`;
a wildcard ending with `.*` such as `kafka.*` stays one group. The dotted form
was the one that mattered: `removeHeaders("*", "x", "my.app*")` kept
`my.app.id` in Java but the dumped route removed it. `Came`, `Beer(X)foo` and
`my.app.id` are in `testCombinePatternsMatchesAsAnyOfThePatterns`, and the dump
test now keeps `org.acme.id` through `org.acme*` (1f969b7256af). For
placeholders there is no correct form before resolution, so the Javadoc says
it: a placeholder keeps the exact name it resolves to (or a prefix with
`{{keep}}*`). A single exclude pattern is not combined, so `removeHeaders("*",
"{{keep}}")` is not affected. The Javadoc also names the one reading still not
kept: a regular expression does not match its own text as an exact name (`a+b`
matches `aab`, not the name `a+b`).
_Claude Code on behalf of Federico Mariani_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]