10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-04 21:24:00 +01:00

Fix supporting information

This commit is contained in:
Mickaël Véril 2020-01-08 15:48:35 +01:00
parent b29ce581d2
commit 94cb411297

View File

@ -106,11 +106,11 @@ class DOI {
}; };
static fromString(str){ static fromString(str){
const vals=str.split(",") const vals=str.split(",")
if (vals.length>1) { if (vals.length==1) {
return new DOI(vals[0].toString()) return new DOI(vals[0].toString())
} }
else{ else{
return new DOI(str[0].toString(),(true ? str[1]=== true.toString() : false)) return new DOI(vals[0].toString(),(true ? vals[1]=== true.toString() : false))
} }
} }
toString() { toString() {