regex fix

This commit is contained in:
n 2021-02-27 17:32:11 +01:00
parent 20f4ba629c
commit c081a993cb
Signed by: n
GPG key ID: E96086FC951DAE30

View file

@ -60,7 +60,7 @@ function shaargem_plugin_init($conf)
*/
function hook_shaargem_render_editlink($data)
{
$ret=preg_match(",gemini://(.*)?/?(.*),", $data['link']['url'] ,$domain);
$ret=preg_match(",gemini://([\d\w\.\+\-@\:%._\~#=]+)/?,", $data['link']['url'] ,$domain);
error_log("ret:".$ret);
if ($ret)