Ewasong opened a new issue #8524:
URL: https://github.com/apache/dubbo/issues/8524


   - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) 
of this repository and believe that this is not a duplicate.
   - [x] I have checked the 
[FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository 
and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.0.1
   * Operating System version: win10
   * Java version: jdk8
   
   ### Code link
   
https://github.com/apache/dubbo/blob/3.0/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/condition/ConditionRouter.java
   ### My Suggest
   
   ```java
       private boolean isMatch(String value, URL param) {
           for (String mismatch : mismatches) {
               if (UrlUtils.isMatchGlobPattern(mismatch, value, param)) {
                   return false;
               }
           }
           for (String match : matches) {
               if (UrlUtils.isMatchGlobPattern(match, value, param)) {
                   return true;
               }
           }
           return !mismatches.isEmpty() && matches.isEmpty();
       }
   ```
   ### Test results
   
![image](https://user-images.githubusercontent.com/8654292/129582018-73a2c1fd-8b74-4821-be90-6e160f1338dc.png)
   


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to