Browse Source

add underline escape

main
ghost 10 months ago
parent
commit
5b97b6a41d
  1. 12
      src/controller/room.php

12
src/controller/room.php

@ -595,10 +595,16 @@ class Room @@ -595,10 +595,16 @@ class Room
$line
);
// Escape inline *
// Escape inline
$line = preg_replace(
'/[*]{1}([^*]+)[*]{1}/',
'[*]$1[*]',
[
'/[*]{1}([^*]+)[*]{1}/',
'/[_]{1}([^*]+)[_]{1}/',
],
[
'[*]$1[*]',
'[_]$1[_]',
],
$line
);

Loading…
Cancel
Save