X-Git-Url: http://git.tpope.net/?p=tpope-extra.git;a=blobdiff_plain;f=drupal%2Fmodules%2Fcvsfilter.module;fp=drupal%2Fmodules%2Fcvsfilter.module;h=f703753f3fc443a5473eaabb54c1ad6727765b3c;hp=84f5127a19b821381b3f038d5ccb8834bfcadedf;hb=d6ae26ff7d7f02587dce5b22bf920063aa8fe980;hpb=23eb137b54db28e622d70ec9b451c75ef752b047
diff --git a/drupal/modules/cvsfilter.module b/drupal/modules/cvsfilter.module
index 84f5127..f703753 100644
--- a/drupal/modules/cvsfilter.module
+++ b/drupal/modules/cvsfilter.module
@@ -17,8 +17,8 @@ function cvsfilter_filter($op, $text = "") {
return form_group(t("URL Filter"), t("CVS Filter is enabled. This means that cvs: style URLs will automatically be pointed at the appropriate location."));
case "process":
//$text = " " . $text . " ";
+ $text = preg_replace("//i", '', $text);
$text = preg_replace("//i", '', $text);
- $text = preg_replace("//i", '', $text);
// $text = preg_replace("<([ \n\r\t\(])([A-Za-z0-9._-]+@[A-Za-z0-9._-]+\.[A-Za-z]{2,4})([.,]?)(?=[ \n\r\t\)])>i", '\1\2\3', $text);
// $text = preg_replace("<([ \n\r\t\(])(www\.[a-zA-Z0-9@:%_~#?&=.,/;-]*[a-zA-Z0-9@:%_~#\&=/;-])([.,?]?)(?=[ \n\r\t\)])>i", '\1\2\3', $text);
//$text = substr($text, 1, -1);