Fixed DOI regex & added nicer fail message for crossref when DOI does not exist.

This commit is contained in:
Matt Burton 2009-04-29 18:08:34 +00:00
parent 8b5fbe7e96
commit b5974570e8
2 changed files with 6 additions and 2 deletions

View file

@ -11,8 +11,7 @@
"lastUpdated":"2009-04-07 15:48:00"
}
//var DOIre = /(doi:)?\s*(10\.[\w.]+\/[^\/\s]+)/ig;
var DOIre = /doi:\s*(10\.[\w.]+\/[^\/\s]+)/ig;
var DOIre = /(?:doi:)?\s*(10\.[\w.]+\/[^\/\s]+)/igm;
var items = {};
var selectArray = {};