Skip to content

Commit

Permalink
Refine regex to catch "assassin" and "massacre"
Browse files Browse the repository at this point in the history
  • Loading branch information
molly committed Dec 5, 2013
1 parent 9bde3bb commit 5e844f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -36,3 +36,4 @@ nosetests.xml
.pydevproject
.idea/*
secrets.py
*.log
3 changes: 2 additions & 1 deletion cyberprefixer.py
Expand Up @@ -35,7 +35,8 @@
r"injur(e|i?es|ed|y)|kill(ing|ed|er|s)?|fatal(ly|ity)?|"
r"shoo?t(s|ing|er)?|crash(es|ed|ing)?|"
r"murder(s|er|ed|ing)?|hostages?|rape(s|d)?|"
r"assault(s|ed)?|pile-?ups?)\b", flags=re.IGNORECASE)
r"assault(s|ed)?|pile-?ups?|massacre(s|d)?|"
r"assassinate(d|s)?)\b", flags=re.IGNORECASE)

def get():
try:
Expand Down

0 comments on commit 5e844f5

Please sign in to comment.