diff options
author | Brion Vibber <brion@pobox.com> | 2010-11-22 12:38:47 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-11-22 12:38:47 -0800 |
commit | 5ad06e80b654d8a6a6e5487349e659d8ee46d471 (patch) | |
tree | 3d36ca8c3a8728793234bf8cea8be25eac2b1165 /plugins/Awesomeness | |
parent | 263bd5b387dc21760ed23933ebb0a82d3f94a9d6 (diff) |
Tweak regex in Awesomeness plugin
Diffstat (limited to 'plugins/Awesomeness')
-rw-r--r-- | plugins/Awesomeness/AwesomenessPlugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Awesomeness/AwesomenessPlugin.php b/plugins/Awesomeness/AwesomenessPlugin.php index 0d7900064..c182264b7 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", " <b>$2</b> ", $content); + $options['rendered'] = preg_replace("/(^|\s|-)((?:awesome|awesomeness)[\?!\.\,]?)(\s|$)/i", " <b>$2</b> ", $content); } }
\ No newline at end of file |