{ "translatorID": "c159dcfe-8a53-4301-a499-30f6549c340d", "translatorType": 4, "label": "DOI", "creator": "Simon Kornblith", "target": null, "minVersion": "3.0", "maxVersion": null, "priority": 400, "inRepository": true, "browserSupport": "gcsibv", "lastUpdated": "2024-08-21 22:15:00" } /* ***** BEGIN LICENSE BLOCK ***** Copyright © 2019 Simon Kornblith This file is part of Zotero. Zotero is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Zotero is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with Zotero. If not, see . ***** END LICENSE BLOCK ***** */ // TODO Detect DOIs more correctly. // The actual rules for DOIs are very lax-- but we're more strict. // Specifically, we should allow space characters, and all Unicode // characters except for control characters. Here, we're cheating // by not allowing ampersands, to fix an issue with getting DOIs // out of URLs. // Additionally, all content inside