Skip to content
Permalink
Browse files Browse the repository at this point in the history
Cleanup BB Code
  • Loading branch information
remdex committed Sep 28, 2020
1 parent 8b05d35 commit a131b93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lhc_web/lib/core/lhbbcode/lhbbcode.php
Expand Up @@ -617,11 +617,11 @@ public static function BBCode2Html($text) {
'/\[u\](.*?)\[\/u\]/ms',
'/\[mark\](.*?)\[\/mark\]/ms',
'/\[s\](.*?)\[\/s\]/ms',
'/\[list\=(.*?)\](.*?)\[\/list\]/ms',
'/\[list\=([0-9]+)\](.*?)\[\/list\]/ms',
'/\[list\](.*?)\[\/list\]/ms',
'/\[\*\]\s?(.*?)\n/ms',
'/\[fs(.*?)\](.*?)\[\/fs(.*?)\]/ms',
'/\[color\=(.*?)\](.*?)\[\/color\]/ms'
'/\[fs([0-9]+)\](.*?)\[\/fs\]/ms',
'/\[color\=([A-Za-z0-9]{2,6})\](.*?)\[\/color\]/ms'
);

// And replace them by...
Expand Down
6 changes: 3 additions & 3 deletions lhc_web/lib/core/lhbbcode/lhbbcode_cleanup.php
Expand Up @@ -616,11 +616,11 @@ public static function BBCode2Html($text) {
'/\[u\](.*?)\[\/u\]/ms',
'/\[mark\](.*?)\[\/mark\]/ms',
'/\[s\](.*?)\[\/s\]/ms',
'/\[list\=(.*?)\](.*?)\[\/list\]/ms',
'/\[list\=([0-9]+)\](.*?)\[\/list\]/ms',
'/\[list\](.*?)\[\/list\]/ms',
'/\[\*\]\s?(.*?)\n/ms',
'/\[fs(.*?)\](.*?)\[\/fs(.*?)\]/ms',
'/\[color\=(.*?)\](.*?)\[\/color\]/ms'
'/\[fs([0-9]+)\](.*?)\[\/fs\]/ms',
'/\[color\=([A-Za-z0-9]{2,6})\](.*?)\[\/color\]/ms'
);

// And replace them by...
Expand Down

0 comments on commit a131b93

Please sign in to comment.