嗯嗯，知道了，谢学长~


On Mon, Sep 23, 2013 at 12:28 AM, MOON-CLJ <notifications@github.com> wrote:

> In xapian_weibo/utils.py:
>
> >                 if 3 < len(token[0]) < 30 or token[0] in single_word_whitelist]
> >
> >      if cx:
> >          return tks
> >      else:
> >          return [tk[0] for tk in tks]
> > +
> > +def filter(text):
> > +    pattern_list=['\(分享自 .*\)','转发微博','http://t.cn/\w*'
> ,'@\S*','//','#.*#']
> > +    for i in pattern_list:
> > +        p=re.compile('%s' % i)
>
> 没必要吧，直接p=re.compile(i)就行了
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/MOON-CLJ/xapian_weibo/pull/6/files#r6505603>
> .
>