regex2
This commit is contained in:
parent
b1f996f0b6
commit
2a7d04ea0a
4 changed files with 9 additions and 21 deletions
|
@ -413,7 +413,7 @@ def api_comment(v):
|
|||
g.db.add(c_choice)
|
||||
|
||||
if request.host == 'pcmemes.net' and c.body.lower().startswith("based"):
|
||||
pill = re.match("based and (.{1,20}?)(-| )pilled", body, flags=re.I|re.A)
|
||||
pill = based_regex.match(body)
|
||||
|
||||
if level == 1: basedguy = get_account(parent_post.author_id)
|
||||
else: basedguy = get_account(c.parent_comment.author_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue