Browse Source

fix regex rule

main
ghost 8 months ago
parent
commit
65f54b062e
  1. 4
      src/server.php

4
src/server.php

@ -558,8 +558,8 @@ $server->setHandler( @@ -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',

Loading…
Cancel
Save