]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Tweak regex in Awesomeness plugin
authorBrion Vibber <brion@pobox.com>
Mon, 22 Nov 2010 20:38:47 +0000 (12:38 -0800)
committerBrion Vibber <brion@pobox.com>
Mon, 22 Nov 2010 20:38:47 +0000 (12:38 -0800)
plugins/Awesomeness/AwesomenessPlugin.php

index 0d7900064db16238ef0581bbf6a0f729d93deb8b..c182264b7ff2f661f5fce9047570c31b655fb21f 100644 (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);
     }
        
 }
\ No newline at end of file