don't strip all tags when checking if post content has updated -- images and stuff are important

This commit is contained in:
Kyle Mahan 2016-02-17 22:13:56 +00:00
parent 750030dee6
commit daa673f37b
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ itsdangerous==0.24
Jinja2==2.8
MarkupSafe==0.23
mf2py==1.0.2
mf2util==0.3.1
mf2util==0.3.1.1
psycopg2==2.6.1
pyasn1==0.1.9
pycparser==2.14

View file

@ -25,7 +25,7 @@ UPDATE_INTERVAL_PUSH = datetime.timedelta(days=1)
TWITTER_RE = re.compile(
r'https?://(?:www\.|mobile\.)?twitter\.com/(\w+)/status(?:es)?/(\w+)')
TAG_RE = re.compile(r'</?\w+[^>]*?>')
TAG_RE = re.compile(r'</?(div|span)[^>]*?>')
COMMENT_RE = re.compile(r'<!--[^>]*?-->')
JAM_RE = re.compile(
'\s*\u266b (?:https?://)?[a-z0-9._\-]+\.[a-z]{2,9}(?:/\S*)?')