Browse Source

Update func.various.inc

Capitan Cloud 2 years ago
parent
commit
ed38974511
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Private/functions/func.various.inc

+ 2 - 2
Private/functions/func.various.inc

@@ -188,7 +188,7 @@ if (!function_exists("enableLinks")) {
 function enableLinks(string $text): string
 function enableLinks(string $text): string
 {
 {
   //return preg_replace("/(https?:\/\/)([\da-z\.-]+)\.([a-z\.]{2,8})(\/?.+)?/", "<a href='\\0' target=\"_blank\">\\0</a>", $text);
   //return preg_replace("/(https?:\/\/)([\da-z\.-]+)\.([a-z\.]{2,8})(\/?.+)?/", "<a href='\\0' target=\"_blank\">\\0</a>", $text);
-  return preg_replace("/(https?:\/\/)([\da-z\.-]+)\.([a-z\.]{2,8})(\/?[\da-zA-Z\-\?\/\&\#\=]+)?/i", "<a href='\\0' target=\"_blank\">\\0</a>", $text);
+  return preg_replace("/(https?:\/\/)([\da-z\.-]+)\.([a-z\.]{2,8})(\/?[\da-zA-Z\-\_\?\/\&\#\=]+)?/i", "<a href='\\0' target=\"_blank\">\\0</a>", $text);
 }  
 }  
 }
 }
 
 
@@ -237,4 +237,4 @@ function getShortLang($lang) {
     return left($lang, 2);
     return left($lang, 2);
   }
   }
 }
 }
-}
+}