mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix bug
This commit is contained in:
parent
23a5e6510d
commit
a616903de1
@ -3,12 +3,14 @@
|
|||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# 5.6.3 (2021-03-31)
|
# 5.6.3 (2021-04-02)
|
||||||
|
|
||||||
### 新特性
|
### 新特性
|
||||||
* 【core 】 修改数字转换的实现,增加按照指定端序转换(pr#1492@Github)
|
* 【core 】 修改数字转换的实现,增加按照指定端序转换(pr#1492@Github)
|
||||||
* 【core 】 修改拆分byte数组时最后一组长度的规则(pr#1494@Github)
|
* 【core 】 修改拆分byte数组时最后一组长度的规则(pr#1494@Github)
|
||||||
|
|
||||||
### Bug修复
|
### Bug修复
|
||||||
|
* 【core 】 修复Validator.isUrl()传空返回true(issue#I3ETTY@Gitee)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -951,6 +951,9 @@ public class Validator {
|
|||||||
* @return 是否为URL
|
* @return 是否为URL
|
||||||
*/
|
*/
|
||||||
public static boolean isUrl(CharSequence value) {
|
public static boolean isUrl(CharSequence value) {
|
||||||
|
if(StrUtil.isBlank(value)){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
new java.net.URL(StrUtil.str(value));
|
new java.net.URL(StrUtil.str(value));
|
||||||
} catch (MalformedURLException e) {
|
} catch (MalformedURLException e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user