Skip to content

Commit

Permalink
fix:isMatchAllValue仅适用于value_type==TEXT场景 (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun authored Dec 19, 2023
1 parent e4c35a6 commit e2e7add
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ public Pattern apply(String s) {
* @return 是否全匹配,全匹配则忽略该规则
*/
public static boolean isMatchAllValue(MatchString ruleMetaValue) {
// see issue: https://github.com/Tencent/spring-cloud-tencent/issues/1214
// 如果 ValueType 类型不为 TEXT, 则不参与是否为全匹配场景判断, 直接快速返回 false
if (ruleMetaValue.getValueType() != MatchString.ValueType.TEXT) {
return false;
}
return isMatchAllValue(ruleMetaValue.getValue().getValue());
}

Expand Down

0 comments on commit e2e7add

Please sign in to comment.