Joe Kletch wrote:
>> header   __PORN_WORD12  Subject =~/(?:d(?:ic|ci)k|c(?:|oc|co)k/i
>> 
>> Unfortunately I don't understand regexp, any suggestions for fixing
>> this?  If I remove the lint test report is good.
>> 
> 
> Through trial and error I found that removing the third '(' made lint
> happy. I hope I didn't change the intent of the rule:
> This works:
> header   __PORN_WORD12  Subject =~/(?:d(?:ic|ci)k|c?:|oc|co)k/i

You did change the intent of the rule

I'm having trouble reconstructing the original intent, though...
header   __PORN_WORD12  Subject =~/(?:d(?:ic|ci)k)|c(?:|oc|co)k/i
or
header   __PORN_WORD12  Subject =~/(?:d(?:ic|ci)k|c(?:|oc|co)k)/i

spring to mind

Matthew.van.Eerde (at) hbinc.com                 805.964.4554 x902
Hispanic Business Inc./HireDiversity.com         Software Engineer
perl -e"map{y/a-z/l-za-k/;print}shift" "Jjhi pcdiwtg Ptga wprztg,"

Reply via email to