Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_searchhighlight
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27789
Modified Files:
serendipity_event_searchhighlight.php
Log Message:
Optimize patterns
Index: serendipity_event_searchhighlight.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_searchhighlight/serendipity_event_searchhighlight.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- serendipity_event_searchhighlight.php 28 Aug 2004 15:52:42 -0000 1.3
+++ serendipity_event_searchhighlight.php 28 Aug 2004 15:55:53 -0000 1.4
@@ -97,10 +97,10 @@
if ( preg_match('@^(www\.)?altavista\.@i', $url['host']) ) {
return PLUGIN_EVENT_SEARCHHIGHLIGHT_ALTAVISTA;
}
- if ( preg_match('@^(suche\.)?aol\.de@i', $url['host']) ) {
+ if ( preg_match('@^suche\.aol\.de@i', $url['host']) ) {
return PLUGIN_EVENT_SEARCHHIGHLIGHT_AOL_DE;
}
- if ( preg_match('@^(search\.)?aol\.com@i', $url['host']) ) {
+ if ( preg_match('@^search\.aol\.com@i', $url['host']) ) {
return PLUGIN_EVENT_SEARCHHIGHLIGHT_AOL_COM;
}
|