From: Brion Vibber Date: Mon, 22 Nov 2010 20:38:47 +0000 (-0800) Subject: Tweak regex in Awesomeness plugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5ad06e80b654d8a6a6e5487349e659d8ee46d471;p=quix0rs-gnu-social.git Tweak regex in Awesomeness plugin --- 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