This commit is contained in:
Looly 2021-04-02 18:54:05 +08:00
parent 23a5e6510d
commit a616903de1
2 changed files with 6 additions and 1 deletions

View File

@ -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()传空返回trueissue#I3ETTY@Gitee
------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------

View File

@ -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) {