bio-tools / biotoolsSchema

biotoolsSchema : Tool description data model for computational tools in life sciences
Creative Commons Attribution Share Alike 4.0 International
36 stars 12 forks source link

Revisit DOI regex #134

Closed joncison closed 5 years ago

joncison commented 5 years ago

see https://www.crossref.org/blog/dois-and-matching-regular-expressions/

we had issues allowing regex with (erroneous) '.' (full stop) characters at end, see https://github.com/bio-tools/biotoolsRegistry/issues/337

joncison commented 5 years ago

The basic regex (which catches vast majority of DOI) is OK

What need to do is add <xs:whiteSpace value="preserve"/> so that whitespace is preserved, thus DOI values with e.g. preceding whitespace will be invalid.

joncison commented 5 years ago

duplicates https://github.com/bio-tools/biotoolsSchema/issues/8

all details copied across