1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04:00

Fix 'Sort with "The", "A", "An"' on dropdown in displayShow not working.

This commit is contained in:
Alexandre Beloin 2015-01-21 15:29:16 -05:00
parent 91cb8d885c
commit faa3cc8fdf

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)