lib/bolognese/utils.rb in bolognese-1.3.23 vs lib/bolognese/utils.rb in bolognese-1.4

- old
+ new

@@ -340,9 +340,11 @@ if /\A(?:(http|https):\/(\/)?(dx\.)?(doi.org|handle.test.datacite.org)\/)?(doi:)?(10\.\d{4,5}\/.+)\z/.match(id) ra = get_doi_ra(id) %w(DataCite Crossref mEDRA KISTI JaLC OP).include?(ra) ? ra.downcase : nil elsif /\A(?:(http|https):\/(\/)?orcid\.org\/)?(\d{4}-\d{4}-\d{4}-\d{3}[0-9X]+)\z/.match(id) "orcid" + elsif /\A(http|https):\/(\/)?github\.com\/(.+)\/package.json\z/.match(id) + "npm" elsif /\A(http|https):\/(\/)?github\.com\/(.+)\z/.match(id) "codemeta" else "schema_org" end