Skip to content

Commit

Permalink
Don't strip <?php
Browse files Browse the repository at this point in the history
autopull
  • Loading branch information
𝐢𝐁𝐮𝐠 ♦ͦͦͦͦͦͦͦͦͦͦ committed Sep 25, 2018
1 parent ae0f951 commit ca3585a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion findspam.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ def similar_answer(post):

# noinspection PyMissingTypeHints
def strip_urls_and_tags(s):
return regex.sub(URL_REGEX, "", regex.sub(r"</?[^>]+>|\w+://", "", s))
return regex.sub(URL_REGEX, "", regex.sub(r"<(?!\?)/?[^>]+>|\w+://", "", s))


# noinspection PyUnusedLocal,PyMissingTypeHints
Expand Down

0 comments on commit ca3585a

Please sign in to comment.