派生自 projectDept/qhighschool

EricsHu
2023-03-30 334ab7e4b7be277a3eba52616222c9fba4f08b20
src/main/java/com/qxueyou/scc/shorturl/util/ShortUrlUtils.java
@@ -4,17 +4,17 @@
import java.util.regex.Pattern;
/**
 * 短地址utils
 * 短地址utils
 * @author lihanqi
 *
 */
public class ShortUrlUtils {
   
   /**
   * 验证网址Url
   * 验证网址Url
   * 
   * @param 待验证的字符串
   * @return 如果是符合格式的字符串,返回 <b>true </b>,否则为 <b>false </b>
   * @param 待验证的字符串
   * @return 如果是符合格式的字符串,返回 <b>true </b>,否则为 <b>false </b>
   */
   public static boolean IsUrl(String str) {
      String regex = "^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]";