This commit is contained in:
2020-11-17 18:40:53 +08:00
parent 37a668c2d8
commit cd93ba6c3a
+1 -1
View File
@@ -47,7 +47,7 @@ if (!function_exists('isUrl')) {
function isUrl($url, $get_info = true)
{
try {
$queryMatch = '/((http[s]?):\/\/)?(([\w-\_]+\.)+\w+(:\d+)?)(\/.*)?/';
$queryMatch = '/((http[s]?):\/\/)?(([\w\-\_]+\.)+\w+(:\d+)?)(\/.*)?/';
if (!preg_match($queryMatch, $url, $outPut)) {
return false;
}