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

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