buriy/python-readability

compile_pattern should not use string.lower() or use re.I flag

baby5 opened this issue · 2 comments

baby5 commented

return re.compile(u'|'.join([re.escape(x.strip().lower()) for x in elements]), re.U)

class or id attributes may have uppercase

buriy commented

You're right. Could you make a PR?

baby5 commented

@buriy I have made a PR for this