regex fix
This commit is contained in:
parent
20f4ba629c
commit
c081a993cb
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ function shaargem_plugin_init($conf)
|
||||||
*/
|
*/
|
||||||
function hook_shaargem_render_editlink($data)
|
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);
|
error_log("ret:".$ret);
|
||||||
if ($ret)
|
if ($ret)
|
||||||
|
|
Loading…
Reference in a new issue