!264 fix(SaFoxUtil): 修复权限正则匹配模式

Merge pull request !264 from CZHao/dev
This commit is contained in:
孔明 2023-07-27 17:08:22 +00:00 committed by Gitee
commit 559fba69b8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -252,7 +252,7 @@ public class SaFoxUtil {
return patt.equals(str);
}
// 正则匹配
return Pattern.matches(patt.replaceAll("\\*", ".*"), str);
return Pattern.matches(patt.replace(".*", "\\..*"), str);
}
/**