From 65f54b062ed8ae42624ec43ed6b015424eee3bf7 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 4 Mar 2024 23:27:24 +0200 Subject: [PATCH] fix regex rule --- src/server.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.php b/src/server.php index cba7f8d..ca02512 100644 --- a/src/server.php +++ b/src/server.php @@ -558,8 +558,8 @@ $server->setHandler( $result[] = trim( preg_replace( [ - '/(^|\s+)(#|\*|```|=>)/', // escape gemini text - '/[\n\r]{3,}/', // remove extra breaks + '/^(^|\s+)(#|\*|```|=>)/', // escape gemini text + '/[\n\r]{3,}/', // remove extra breaks ], [ '$1 $2',