允许自定义 SaFoxUtil.isUrl 方法使用的正则表达式

This commit is contained in:
click33 2023-05-18 18:32:01 +08:00
parent 8cb8016fb4
commit b38f1e06eb

View File

@ -466,7 +466,7 @@ public class SaFoxUtil {
/**
* 验证URL的正则表达式
*/
public static final String URL_REGEX = "(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]";
public static String URL_REGEX = "(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]";
/**
* 使用正则表达式判断一个字符串是否为URL