/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2021-07-22 09:24:57
 * @LastEditTime : 2021-07-22 10:22:07
 * @Description  : Do not edit
 */
class UrlFunc {
  static urlHasMatch(String url) {
    RegExp pattern = new RegExp(r'^(http|https):\/\/([\w.]+\/?)\S*');
    return (url != '' ? pattern.hasMatch(url) : false);
  }
}
