From ba664e101a2342bc4640452a88be07571b819786 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 4 Mar 2024 23:29:24 +0200 Subject: [PATCH] rollback regex change --- src/server.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.php b/src/server.php index ca02512..cba7f8d 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',