[cvs] bogofilter/src lexer_v3.l,1.29,1.30
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2003-07-05 03:22:08
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1:/tmp/cvs-serv16485 Modified Files: lexer_v3.l Log Message: Allow newline in html tags. (Thanks to Pavel Kankovsky for this patch.) Index: lexer_v3.l =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/lexer_v3.l,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- lexer_v3.l 16 Jun 2003 11:56:12 -0000 1.29 +++ lexer_v3.l 5 Jul 2003 03:22:03 -0000 1.30 @@ -231,7 +231,7 @@ <HTML>"<!--" { BEGIN SCOMMENT; } <HTML>"<!" { BEGIN (strict_check ? HTOKEN : LCOMMENT ); } -<HTML>"<"(a|img|font)"\ " { BEGIN HTOKEN; } +<HTML>"<"(a|img|font){WHITESPACE} { BEGIN HTOKEN; } <HTML>"<" { /* unknown tag */ BEGIN HDISCARD; } <HTOKEN>{TOKEN} { if (tokenize_html_tags) return TOKEN; } |