Open fwkoch opened 4 months ago
Discussing with @rowanc1 - the other factor here is how authors want to present their DOIs. Even if they are technically case-insensitive, we may not want to lose the original case. Maybe that means we do not normalize to lower case, and in applications where DOI strings are compared, there must be an additional toLowerCase
outside of doi.normalize
. Alternatively, we could provide an option to the normalize function, but that may be unnecessary complexity here.
From the DOI handbook
For that reason, I thing
normalize
should return the.toLowerCase
version of the DOI. Maybe it's just that simple, assuming there's no issues with special characters?