Skip to content

Commit

Permalink
Revert "#510: Removed a redundant pattern in strip_bbcode"
Browse files Browse the repository at this point in the history
This reverts commit 34a7cab.
  • Loading branch information
daris committed Jan 20, 2012
1 parent e793d7e commit 42ed18d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/search_idx.php
Expand Up @@ -144,6 +144,7 @@ function strip_bbcode($text)
$patterns = array(
'%\[img=([^\]]*+)\]([^[]*+)\[/img\]%' => '$2 $1', // Keep the url and description
'%\[(url|email)=([^\]]*+)\]([^[]*+(?:(?!\[/\1\])\[[^[]*+)*)\[/\1\]%' => '$2 $3', // Keep the url and text
'%\[(img|url|email)\]([^[]*+(?:(?!\[/\1\])\[[^[]*+)*)\[/\1\]%' => '$2', // Keep the url
'%\[(topic|post|forum|user)\][1-9]\d*\[/\1\]%' => ' ', // Do not index topic/post/forum/user ID
'%\[/?(b|u|s|ins|del|em|i|h|colou?r|quote|code|img|url|email|list|topic|post|forum|user)(?:\=[^\]]*)?\]%' => ' ' // Remove BBCode
);
Expand Down

0 comments on commit 42ed18d

Please sign in to comment.