-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gnd: improve validation and normalization
* accept both `http://d-nb.info/gnd/<id>` and `https://d-nb.info/gnd/<id>` to be pasted as GND URI and being normalized * re-use gnd_resolver_url var in regex * use the regex in the normalize function * utils: remove var and improve regex * validators: dont use var * utils: adapt to correct url match regex * validators: remove additional check * utils: improve regex to match for IDs without http prefix in order to remove additional check in validators * validators: adhere to pydocstyle --------- Co-authored-by: Karl Krägelin <[email protected]>
- Loading branch information
Showing
3 changed files
with
4 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters