Merge pull request #92 from aurimasv/cleanDOI
[cleanDOI] Don't allow periods or commas at the end of DOIs
This commit is contained in:
commit
3810759786
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ Zotero.Utilities = {
|
|||
throw "cleanDOI: argument must be a string";
|
||||
}
|
||||
|
||||
return x.match(/10\.[^\s\/]+\/[^\s]+/);
|
||||
return x.match(/10\.[0-9]{4,}\/[^\s]*[^\s\.,]/);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue