Browse Source

fix escape priority

main
ghost 9 months ago
parent
commit
a9b25064ac
  1. 18
      src/controller/room.php

18
src/controller/room.php

@ -433,12 +433,19 @@ class Room @@ -433,12 +433,19 @@ class Room
$line
);
// Escape inline *
$line = preg_replace(
'/[*]{1}([^*]+)[*]{1}/',
'[*]$1[*]',
$line
);
// Process each tag on line beginning
foreach (
[
'#',
'##',
'###',
'##',
'#',
'=>',
'>',
'*',
@ -457,13 +464,6 @@ class Room @@ -457,13 +464,6 @@ class Room
);
}
// Escape inline *
$line = preg_replace(
'/[*]{1}([^*]+)[*]{1}/',
'[*]$2[*]',
$line
);
// Merge lines
$lines[] = $line;
}

Loading…
Cancel
Save