Akram Khan created KAFKA-20189:
----------------------------------

             Summary: KAFKA-SHELL: Add character class support to GlobComponent
                 Key: KAFKA-20189
                 URL: https://issues.apache.org/jira/browse/KAFKA-20189
             Project: Kafka
          Issue Type: Improvement
          Components: tools
            Reporter: Akram Khan
            Assignee: Akram Khan


*GlobComponent* currently does not support character classes (e.g. [a-z], 
[abc]).
This patch implements character class handling in *toRegularExpression()* 
including:
 * Support for ranges (e.g. [a-z])
 * Support for negation using '!' and '^'
 * Support for escaped characters inside the class
 * Proper validation of malformed character classes

Malformed character classes continue to fall back to literal behavior,
consistent with existing error handling.

Unit tests are included.

~This change performs minimal validation necessary to ensure safe regex 
generation. Full glob syntax validation is outside the scope of this patch.~



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to