Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.0
-
None
Description
Filtering on a header that contains a string with a hyphen, the following works:
from(file://temp).filter(header(FileComponent.HEADER_FILE_NAME).matchesRegex(".-.")).to("mock:result");
but contains is more natural and should also work.
from(file://temp).filter(header(FileComponent.HEADER_FILE_NAME).contains("-")).to("mock:result");
It does not as contains() is focused on collections and reduces to checking equality on single values. A string specialisation could use string.contains.