openmedialibrary/oml/meta/utils.py

6 lines
96 B
Python

def normalize_isbn(value):
return ''.join([s for s in value if s.isdigit() or s == 'X'])