Revert splitting of author strings on commas

This commit is contained in:
Kovid Goyal 2009-06-20 10:25:01 -07:00
parent e6309590fc
commit fc1f350675

View File

@ -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