1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 02:52:20 -05:00

Merge pull request #1217 from abeloin/patch-sorted_remove_article

Fix 'Sort with "The", "A", "An"' on dropdown in displayShow not working.
This commit is contained in:
echel0n 2015-01-29 14:43:07 -08:00
commit 047746c5c9

View File

@ -1335,4 +1335,4 @@ if __name__ == '__main__':
doctest.testmod()
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)