From e7b11c5f4bb8913350c18f327530eac62a378f9f Mon Sep 17 00:00:00 2001 From: JackDandy Date: Tue, 9 Dec 2014 21:32:02 +0000 Subject: [PATCH] Fix article removal for sorting on Display Show, and API pages. Remove Javascript regex boundary from Python regex. --- CHANGES.md | 1 + sickbeard/helpers.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index d62d619c..b129bdba 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/sickbeard/helpers.py b/sickbeard/helpers.py index 2b92f168..74805462 100644 --- a/sickbeard/helpers.py +++ b/sickbeard/helpers.py @@ -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) \ No newline at end of file + return re.sub(r'(?i)^(?:(?:A(?!\s+to)n?)|The)\s(\w)', r'\1', text) \ No newline at end of file