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/layouts/node_modules/delimiter-regex/index.js

34 lines
671 B

'use strict';
var extend = require('extend-shallow');
module.exports = function delimiters(open, close, options) {
if (open instanceof RegExp) {
return open;
}
if (typeof close !== 'string') {
options = close;
close = null;
}
if (typeof open === 'object' && !Array.isArray(open)) {
options = open;
open = null;
close = null;
}
if (Array.isArray(open)) {
var syntax = open.slice();
open = syntax[0];
close = syntax[1];
}
var opts = extend({flags: ''}, options);
var body = '([\\s\\S]+?)';
open = open ? open : '\\${';
close = close ? close : '}';
return new RegExp(open + body + close, opts.flags);
};