bookdata::cleaning

Module isbns

Source
Expand description

Code for cleaning up ISBNs.

This module contains two families of functions:

When a string is a relatively well-formed ISBN (or ASIN), the character-cleaning functions are fine. Some sources, however (such as the Library of Congress) have messy ISBNs that may have multiple ISBNs in one string, descriptive tags, and all manner of other messes. The multi-ISBN parser exposed through parse_isbn_string supports cleaning these ISBN strings using a PEG-based parser.

Modules§

Structs§

Enums§

Statics§

  • IGNORES 🔒
    Regular expressions for unparsable ISBN strings to ignore. This cleans up warning displays.

Functions§