Commits

Esteban Feldman committed cc2a58d

escape regex pattern

  • Participants
  • Parent commits ca6673d

Comments (0)

Files changed (1)

tagged/processors.py

         for i in enumerate(keywords):
             word = keywords.pop(0)
             for target in keywords:
-                if re.search(word, target):
+                if re.search(re.escape(word), target):
                     purge.append(word)
                     break
             keywords.append(word)