Tweak regex in Awesomeness plugin
This commit is contained in:
parent
263bd5b387
commit
5ad06e80b6
|
@ -105,7 +105,7 @@ EOT
|
|||
function onStartSaveNewNoticeWeb($action, $user, &$content, &$options)
|
||||
{
|
||||
$content = htmlspecialchars($content);
|
||||
$options['rendered'] = preg_replace("/(^|\s|-)(awesome|awesomeness[\?!\.\,]?)(\s|$)/i", " <b>$2</b> ", $content);
|
||||
$options['rendered'] = preg_replace("/(^|\s|-)((?:awesome|awesomeness)[\?!\.\,]?)(\s|$)/i", " <b>$2</b> ", $content);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user