when sorting names, handle trailing (...) and [...]

This commit is contained in:
rolux 2014-12-16 18:11:14 +00:00
parent abaae5e059
commit 27c701b97a

View file

@ -255,6 +255,8 @@ def get_sort_name(name):
last_names = []
if re.search('^[0-9]+$', first_names[-1]):
add_name()
if re.search('[(\[].+?[)\]]$', first_names[-1]):
add_name()
if find_name(SUFFIXES):
add_name()
add_name()