mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Revert splitting of author strings on commas
This commit is contained in:
parent
e6309590fc
commit
fc1f350675
@ -16,7 +16,7 @@ from calibre import relpath
|
||||
_author_pat = re.compile(',?\s+and\s+', re.IGNORECASE)
|
||||
def string_to_authors(raw):
|
||||
raw = _author_pat.sub('&', raw)
|
||||
raw = raw.replace('&&', u'\uffff').replace(',', '&')
|
||||
raw = raw.replace('&&', u'\uffff')
|
||||
authors = [a.strip().replace(u'\uffff', '&') for a in raw.split('&')]
|
||||
return authors
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user