poorbarcode commented on code in PR #21885:
URL: https://github.com/apache/pulsar/pull/21885#discussion_r1449690647


##########
pulsar-common/src/main/java/org/apache/pulsar/common/topics/TopicList.java:
##########
@@ -47,13 +47,16 @@ public static List<String> filterTopics(List<String> 
original, String regex) {
     }
     public static List<String> filterTopics(List<String> original, Pattern 
topicsPattern) {
 
-        final Pattern shortenedTopicsPattern = 
topicsPattern.toString().contains(SCHEME_SEPARATOR)
-                ? 
Pattern.compile(SCHEME_SEPARATOR_PATTERN.split(topicsPattern.toString())[1]) : 
topicsPattern;
+        final Pattern shortenedTopicsPattern = 
Pattern.compile(removeTopicDomainSchema(topicsPattern.toString()));

Review Comment:
   Because we want to support that whether use set Topic domain schema or not 😂 
, so just compare after removing the Topic domain schema.
   



-- 
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]

Reply via email to