mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Fix #3739 (Author sort function does not recognize "with")
This commit is contained in:
parent
a8c8e67b92
commit
fb719698f7
@ -13,7 +13,7 @@ from urlparse import urlparse
|
|||||||
|
|
||||||
from calibre import relpath
|
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):
|
def string_to_authors(raw):
|
||||||
raw = raw.replace('&&', u'\uffff')
|
raw = raw.replace('&&', u'\uffff')
|
||||||
raw = _author_pat.sub('&', raw)
|
raw = _author_pat.sub('&', raw)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user