var assert = require('assert') , crypto = require('crypto') , Path = require('path') , minimatch = require('minimatch') , Error = require('http-errors') , LocalList = require('./local-list') , utils = require('./utils') // [[a, [b, c]], d] -> [a, b, c, d] function flatten(array) { var result = [] for (var i=0; i= last_suffix || (m[4] === '' && last_suffix !== Infinity)) { throw new Error('invalid interval: ' + interval) } last_suffix = parse_interval_table[m[4]] result += Number(m[1]) * parse_interval_table[m[4]] }) return result }