You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Akram Khan (Jira)" <ji...@apache.org> on 2026/02/15 18:00:00 UTC
[jira] [Comment Edited] (KAFKA-20189) KAFKA-SHELL: Add character class support to GlobComponent
[ https://issues.apache.org/jira/browse/KAFKA-20189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18058750#comment-18058750 ]
Akram Khan edited comment on KAFKA-20189 at 2/15/26 5:59 PM:
-------------------------------------------------------------
PR: https://github.com/apache/kafka/pull/21482
was (Author: JIRAUSER311729):
[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)