Exclude false positives from ISBN.from_string
tmaier opened this issue · 1 comments
tmaier commented
Given the following strings:
fax: +1 213 413 0950.
Fax +1 213 413 0950
FAX: +1-213-413-0950
ISBN.from_string
gets the ISBN number 1-213-413-095
This is actually not an ISBN number
I see two options how to improve the regex:
- Filter for "Fax" etc.; Drawback: this is not generic enough
- Ensure that there are not more than 13 numbers (+X) directly adjacent to each other.