Fix article removal for sorting on Display Show, and API pages.

Remove Javascript regex boundary from Python regex.
This commit is contained in:
JackDandy 2014-12-09 21:32:02 +00:00
parent 3bfe5443c4
commit e7b11c5f4b
2 changed files with 2 additions and 1 deletions

View file

@ -18,6 +18,7 @@
* Change KickassTorrents provider URLs
* Fix missing Content-Type headers for posters and banners
* Remove config Backup & Restore
* Fix article removal for sorting on Display Show, and API pages
[develop changelog]
* Add TVRage network name standardization

View file

@ -1429,4 +1429,4 @@ def get_size(start_path='.'):
return total_size
def remove_article(text=''):
return re.sub(r'(?i)/^(?:(?:A(?!\s+to)n?)|The)\s(\w)', r'\1', text)
return re.sub(r'(?i)^(?:(?:A(?!\s+to)n?)|The)\s(\w)', r'\1', text)