Fix #3739 (Author sort function does not recognize "with")

This commit is contained in:
Kovid Goyal 2009-10-14 14:10:09 -06:00
parent a8c8e67b92
commit fb719698f7

View File

@ -13,7 +13,7 @@ from urlparse import urlparse
from calibre import relpath
_author_pat = re.compile(',?\s+and\s+', re.IGNORECASE)
_author_pat = re.compile(',?\s+(and|with)\s+', re.IGNORECASE)
def string_to_authors(raw):
raw = raw.replace('&&', u'\uffff')
raw = _author_pat.sub('&', raw)