mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix bug
This commit is contained in:
@@ -951,6 +951,9 @@ public class Validator {
|
||||
* @return 是否为URL
|
||||
*/
|
||||
public static boolean isUrl(CharSequence value) {
|
||||
if(StrUtil.isBlank(value)){
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
new java.net.URL(StrUtil.str(value));
|
||||
} catch (MalformedURLException e) {
|
||||
|
Reference in New Issue
Block a user