diff --git a/oml/meta/utils.py b/oml/meta/utils.py index b47e4ec..e8a92f8 100644 --- a/oml/meta/utils.py +++ b/oml/meta/utils.py @@ -23,7 +23,7 @@ def normalize_isbn(value): def find_isbns(text): if isinstance(text, bytes): text = text.decode() - matches = re.compile('\d[\d\-X\u2013\ ]+').findall(text) + matches = re.compile('\d[\d\-X\u2013–\ ]+').findall(text) matches = [normalize_isbn(value) for value in matches] matches = [to_isbn13(value) for value in matches] matches = list(set([value for value in matches if value]))