abakan-zz / ablog

ABlog for blogging with Sphinx
ablog.readthedocs.org
Other
122 stars 34 forks source link

Not in Latin tags do not work #45

Closed uralbash closed 9 years ago

uralbash commented 9 years ago

For example tag Жириновский, when calling tag.docname it return empty string. I think problem in this line https://github.com/abakan/ablog/blob/master/ablog/blog.py#L34


 string = re.sub(r'[^\w\s-]', '', string).strip().lower()
abakan-zz commented 9 years ago

Your example tag worked fine with Python 3. In Python 2, I pass re.UNICODE flag to re.sub function. This should resolve the issue.

uralbash commented 9 years ago

It works, thanks