mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -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:
commit
047746c5c9
@ -1335,4 +1335,4 @@ if __name__ == '__main__':
|
|||||||
doctest.testmod()
|
doctest.testmod()
|
||||||
|
|
||||||
def remove_article(text=''):
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user