Browse Source

fix escape priority

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

18
src/controller/room.php

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

Loading…
Cancel
Save