From cd93ba6c3a6d0762d72ba2dc212d19eb0f5cf042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 17 Nov 2020 18:40:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function.php b/function.php index 94ce4171..00756796 100644 --- a/function.php +++ b/function.php @@ -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; }