Tweak regex in Awesomeness plugin

This commit is contained in:
Brion Vibber 2010-11-22 12:38:47 -08:00
parent 263bd5b387
commit 5ad06e80b6

View File

@ -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);
}
}