mirror of
https://github.com/openstf/stf
synced 2025-10-03 17:59:28 +02:00
10 lines
235 B
JavaScript
10 lines
235 B
JavaScript
module.exports.list = function(val) {
|
|
return val.split(/\s*,\s*/g).filter(Boolean)
|
|
}
|
|
|
|
module.exports.size = function(val) {
|
|
var match = /^(\d+)x(\d+)$/.exec(val)
|
|
if (match) {
|
|
return [Number(match[1]), Number(match[2])]
|
|
}
|
|
}
|