StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/parse-author/index.js

22 lines
618 B

/*!
* parse-author <https://github.com/jonschlinkert/parse-author>
*
* Copyright (c) 2014-2016, Jon Schlinkert.
* Licensed under the MIT License.
*/
'use strict';
module.exports = function(str) {
if (typeof str !== 'string') {
throw new TypeError('expected author to be a string');
}
var name = str.match(/^([^\(<]+)/);
var url = str.match(/\(([^\)]+)\)/);
var email = str.match(/<([^>]+)>/);
var obj = {};
if (name && name[1].trim()) obj.name = name[1].trim();
if (email && email[1].trim()) obj.email = email[1].trim();
if (url && url[1].trim()) obj.url = url[1].trim();
return obj;
};