Skip to content

Commit

Permalink
strip tokens containing only numbers/punctuation from babble
Browse files Browse the repository at this point in the history
  • Loading branch information
pefoley2 committed Mar 29, 2015
1 parent 95cb23d commit caa151c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/babble.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_messages(cursor, cmdchar, ctrlchan, speaker, newer_than_id):
return query.order_by(Log.id).all()


exclude_re = re.compile('https?://|^[%s]+$' % string.punctuation)
exclude_re = re.compile('https?://|^[0-9%s]+$' % string.punctuation)


def clean_msg(msg):
Expand Down

0 comments on commit caa151c

Please sign in to comment.