diff --git a/sa-token-core/src/main/java/cn/dev33/satoken/util/SaFoxUtil.java b/sa-token-core/src/main/java/cn/dev33/satoken/util/SaFoxUtil.java index 6b519277..925968df 100644 --- a/sa-token-core/src/main/java/cn/dev33/satoken/util/SaFoxUtil.java +++ b/sa-token-core/src/main/java/cn/dev33/satoken/util/SaFoxUtil.java @@ -252,7 +252,7 @@ public class SaFoxUtil { return patt.equals(str); } // 正则匹配 - return Pattern.matches(patt.replaceAll("\\*", ".*"), str); + return Pattern.matches(patt.replace(".*", "\\..*"), str); } /**