[ 
https://issues.apache.org/jira/browse/KAFKA-20189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18058750#comment-18058750
 ] 

Akram Khan commented on KAFKA-20189:
------------------------------------

[link PR: |https://github.com/apache/kafka/pull/21482]

> 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
>            Priority: Minor
>
> *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