Re: [SAtalk] Some rule bugs and improvements needed

2002-01-28 Thread Justin Mason
Greg Ward said: > Here's a candidate replacement test using two regexes: > > /^[A-Z0-9\$\.,\'\!\?\s]+$/ && /[A-Z]/ > > This will match any line that consists solely of caps, digits, and > punctuation *as long as it contains at least one letter*. > > Can you define tests that way in the .cf

Re: [SAtalk] Some rule bugs and improvements needed

2002-01-28 Thread Greg Ward
On 28 January 2002, Sidney Markowitz said: > The comments show that the rule had earlier been modified to not match > on a line with all spaces. I think it has to not match on lines like > this: > > 1. FEATURES Oops, good point -- my simple-minded test would have flagged that. > Maybe it would

Re: [SAtalk] Some rule bugs and improvements needed

2002-01-28 Thread Sidney Markowitz
On Mon, 2002-01-28 at 07:04, Greg Ward wrote: > If you read the regex carefully, you'll realize that there are some odd > restrictions on that line of yelling: > * it must be at least 45 characters long > * there must be a "word" at least 5 characters long in the middle, > at least 20 char

Re: [SAtalk] Some rule bugs and improvements needed

2002-01-28 Thread Greg Ward
On 26 January 2002, Sidney Markowitz said: > Here are some excerpts from a spam that scored 4.9 using a cvs pull from > a few weeks ago and 4.2 with a fresh cvs pull. I think someone has > introduced a bug into the LINE_OF_YELLING rule: > > [begin excerpts] > > HAPPY NEW YEAR! > INSTEAD OF GIVIN