Index: geshifilter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/geshifilter/geshifilter.module,v
retrieving revision 1.18.2.7
diff -u -u -p -r1.18.2.7 geshifilter.module
--- geshifilter.module	15 Sep 2007 13:56:16 -0000	1.18.2.7
+++ geshifilter.module	18 Sep 2007 22:29:33 -0000
@@ -754,7 +754,7 @@ function geshifilter_process($format, $t
   ));
 
   /// TODO: maybe change to preg_replace_callback, should be faster
-  if (preg_match_all('#<('. $tags_string .')([^>]*)>(.*?)</\1\s*>#s', $text, $match_object)) {
+  if (preg_match_all('#[<|\[]('. $tags_string .')([^>\]]*)[>|\]](.*?)[<|\[]/\1\s*[>|\]]#s', $text, $match_object)) {
     // $match_object[0][xx] .... fully matched string <tag type="language">...</tag>
     // $match_object[1][xx] .... tagname
     // $match_object[2][xx] .... full params string type="language"...
