diff options
author | Martin Czygan <martin@archive.org> | 2021-09-21 18:34:31 +0000 |
---|---|---|
committer | Martin Czygan <martin@archive.org> | 2021-09-21 18:34:31 +0000 |
commit | a37404f30b2c1afa0b46ee30a5b59d7312c119d0 (patch) | |
tree | 8f38d396909049971559a5ab574561960d6d5f22 /fuzzycat/utils.py | |
parent | c587a084defe54103aa147b7ab91542a11a548b1 (diff) | |
parent | 5fa61d89320af880d5bf6b3231f6478887cfb6a6 (diff) | |
download | fuzzycat-a37404f30b2c1afa0b46ee30a5b59d7312c119d0.tar.gz fuzzycat-a37404f30b2c1afa0b46ee30a5b59d7312c119d0.zip |
Merge branch 'wip-martin-review-cleanup' into 'master'
review notes and some cleanup
See merge request webgroup/fuzzycat!7
Diffstat (limited to 'fuzzycat/utils.py')
-rw-r--r-- | fuzzycat/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fuzzycat/utils.py b/fuzzycat/utils.py index a1c5124..303daf6 100644 --- a/fuzzycat/utils.py +++ b/fuzzycat/utils.py @@ -81,6 +81,7 @@ def dict_key_exists(doc, path): else: return True + def clean_doi(raw: Optional[str]) -> Optional[str]: if not raw: return None @@ -95,6 +96,7 @@ def clean_doi(raw: Optional[str]) -> Optional[str]: raw = raw[:8] + raw[9:] return raw + def doi_prefix(v): """ Return the prefix of a DOI. |