Skip to content

Commit

Permalink
Use raw string fro regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
miso-belica committed May 23, 2021
1 parent 4a3a23f commit 1170deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion justext/core.py
Expand Up @@ -240,7 +240,7 @@ def classify_paragraphs(paragraphs, stoplist, length_low=LENGTH_LOW_DEFAULT,
paragraph.cf_class = 'bad'
elif ('\xa9' in paragraph.text) or ('&copy' in paragraph.text):
paragraph.cf_class = 'bad'
elif re.search('^select|\.select', paragraph.dom_path):
elif re.search(r'^select|\.select', paragraph.dom_path):
paragraph.cf_class = 'bad'
elif length < length_low:
if paragraph.chars_count_in_links > 0:
Expand Down

0 comments on commit 1170deb

Please sign in to comment.