DominikHubacek commented on a change in pull request #81:
URL: https://github.com/apache/skywalking-java/pull/81#discussion_r766578852



##########
File path: 
apm-sniffer/optional-plugins/trace-ignore-plugin/src/main/java/org/apache/skywalking/apm/plugin/trace/ignore/matcher/FastPathMatcher.java
##########
@@ -122,9 +138,11 @@ private boolean wildcardMatch(String pat, int p, String 
str, int s) {
     }
 
     private boolean multiWildcardMatch(String pat, int p, String str, int s) {
-        // End of pattern, just check the end of string is '/' quickly.
-        if (p >= pat.length() && s < str.length()) {
-            return str.charAt(str.length() - 1) != '/';
+        switch (safeCharAt(pat, p)) {
+            // End of pattern, just return true quickly.
+            case 0: return true;
+            // Skip next '/' for pattern to match zero path part.
+            case '/': p++;

Review comment:
       > OK, so, this becomes a hybrid PR. @DominikHubacek Please recheck this 
PR, and if you don't feel comfortable about this PR will(if merged) be on your 
name, we could consider other options.
   
   its ok, I checked if my changes still work as intended and fixed 1 test 
based on devkanro comment




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