Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_emoticate
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11256
Modified Files:
serendipity_event_emoticate.php
Log Message:
also allow smilies after a '!' and at the end of a string.
Index: serendipity_event_emoticate.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_emoticate/serendipity_event_emoticate.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- serendipity_event_emoticate.php 16 Feb 2005 10:16:09 -0000 1.21
+++ serendipity_event_emoticate.php 16 Feb 2005 10:17:45 -0000 1.22
@@ -171,7 +171,7 @@
$element = &$eventData[$temp['element']];
foreach ($this->getEmoticons() as $key => $value) {
- $element = preg_replace("/([\t\s\.]+)" . $key . "([\t\s\!\.\)]+)/m",
+ $element = preg_replace("/([\t\s\.\!]+)" . $key . "([\t\s\!\.\)]+|\$)/m",
"$1<img src=\"$value\" alt=\"$key\" style=\"display: inline; vertical-align: bottom;\" class=\"emoticon\" />$2",
$element);
}
|