You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2004/07/20 01:29:55 UTC

svn commit: rev 23071 - spamassassin/trunk/rules

Author: felicity
Date: Mon Jul 19 16:29:54 2004
New Revision: 23071

Modified:
   spamassassin/trunk/rules/20_drugs.cf
Log:
trivial regex fixes.  removed unnecessary (?: ... ) parens from DRUG_ED_CAPS.  DRUG_DOSAGE had inefficient OR regexp instead of a simpler character set.

Modified: spamassassin/trunk/rules/20_drugs.cf
==============================================================================
--- spamassassin/trunk/rules/20_drugs.cf	(original)
+++ spamassassin/trunk/rules/20_drugs.cf	Mon Jul 19 16:29:54 2004
@@ -63,11 +63,11 @@
 ###########################################################################
 # body rules
 
-body DRUG_DOSAGE		m{\$? *(?:\d|\.)+ *\$? *(?:\\|/|per) *d.?o.?s.?e}i
+body DRUG_DOSAGE		m{\$? *[0-9.]+ *\$? *(?:\\|/|per) *d.?o.?s.?e}i
 describe DRUG_DOSAGE		Talks about price per dose
 
 # jm: keep this case-sensitive, otherwise it FP's
-body DRUG_ED_CAPS		/(?:\bCIALIS|LEVITRA|VIAGRA)/
+body DRUG_ED_CAPS		/\bCIALIS|LEVITRA|VIAGRA/
 describe DRUG_ED_CAPS		Mentions an E.D. drug
 
 body DRUG_ED_COMBO		/\bviagra .{0,15}(?:phentermine|xenical|tenuate|zyban|propecia)\b/i