From 5ad06e80b654d8a6a6e5487349e659d8ee46d471 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 22 Nov 2010 12:38:47 -0800 Subject: [PATCH] Tweak regex in Awesomeness plugin --- plugins/Awesomeness/AwesomenessPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Awesomeness/AwesomenessPlugin.php b/plugins/Awesomeness/AwesomenessPlugin.php index 0d7900064d..c182264b7f 100644 --- a/plugins/Awesomeness/AwesomenessPlugin.php +++ b/plugins/Awesomeness/AwesomenessPlugin.php @@ -105,7 +105,7 @@ EOT function onStartSaveNewNoticeWeb($action, $user, &$content, &$options) { $content = htmlspecialchars($content); - $options['rendered'] = preg_replace("/(^|\s|-)(awesome|awesomeness[\?!\.\,]?)(\s|$)/i", " $2 ", $content); + $options['rendered'] = preg_replace("/(^|\s|-)((?:awesome|awesomeness)[\?!\.\,]?)(\s|$)/i", " $2 ", $content); } } \ No newline at end of file