mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-02 20:02:49 +08:00
add miniProgram
This commit is contained in:
parent
5fbb1ee06d
commit
01ddc182fd
@ -9,6 +9,7 @@
|
||||
* 【crypto 】 SecureUtil去除final修饰符(issue#1474@Github)
|
||||
* 【core 】 IoUtil增加lineIter方法
|
||||
* 【core 】 新增函数式懒加载加载器(pr#275@Gitee)
|
||||
* 【http 】 UserAgentUtil增加miniProgram判断(issue#1475@Github)
|
||||
|
||||
### Bug修复
|
||||
* 【core 】 修复IoUtil.readBytes的FileInputStream中isClose参数失效问题(issue#I3B7UD@Gitee)
|
||||
|
@ -8,7 +8,7 @@ import java.util.regex.Pattern;
|
||||
|
||||
/**
|
||||
* 浏览器对象
|
||||
*
|
||||
*
|
||||
* @author looly
|
||||
* @since 4.2.1
|
||||
*/
|
||||
@ -50,6 +50,8 @@ public class Browser extends UserAgentInfo {
|
||||
new Browser("wxwork", "wxwork", "wxwork\\/([\\d\\w\\.\\-]+)"),
|
||||
// 微信
|
||||
new Browser("MicroMessenger", "MicroMessenger", "MicroMessenger\\/([\\d\\w\\.\\-]+)"),
|
||||
// 微信小程序
|
||||
new Browser("miniProgram", "miniProgram", "miniProgram\\/([\\d\\w\\.\\-]+)"),
|
||||
// 钉钉
|
||||
new Browser("DingTalk", "DingTalk", "AliApp\\(DingTalk\\/([\\d\\w\\.\\-]+)\\)")
|
||||
);
|
||||
@ -59,7 +61,7 @@ public class Browser extends UserAgentInfo {
|
||||
|
||||
/**
|
||||
* 构造
|
||||
*
|
||||
*
|
||||
* @param name 浏览器名称
|
||||
* @param regex 关键字或表达式
|
||||
* @param versionRegex 匹配版本的正则
|
||||
@ -76,7 +78,7 @@ public class Browser extends UserAgentInfo {
|
||||
|
||||
/**
|
||||
* 获取浏览器版本
|
||||
*
|
||||
*
|
||||
* @param userAgentString User-Agent字符串
|
||||
* @return 版本
|
||||
*/
|
||||
@ -86,7 +88,7 @@ public class Browser extends UserAgentInfo {
|
||||
|
||||
/**
|
||||
* 是否移动浏览器
|
||||
*
|
||||
*
|
||||
* @return 是否移动浏览器
|
||||
*/
|
||||
public boolean isMobile() {
|
||||
|
Loading…
Reference in New Issue
Block a user