@ckirby/mr-lister
Advanced tools
Comparing version 2.7.0 to 2.7.1
@@ -10,3 +10,3 @@ "use strict"; | ||
while ((res = pat.exec(str))) { | ||
let { start, end } = res.groups; | ||
let { start, end = start } = res.groups; | ||
if (end.length < start.length) { | ||
@@ -56,2 +56,2 @@ // if we have a range such as 110-15, then copy | ||
exports.default = stringList; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5nLWxpc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc3RyaW5nLWxpc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxTQUF3QixVQUFVLENBQ2hDLEdBQVcsRUFDWCxFQUFFLElBQUksR0FBRyxJQUFJLEVBQUUsTUFBTSxHQUFHLElBQUksRUFBRSxHQUFHLEVBQUU7SUFFbkMsSUFBSSxNQUFNLEdBQWUsRUFBRSxDQUFDO0lBQzVCLGlEQUFpRDtJQUNqRCxnREFBZ0Q7SUFDaEQsSUFBSSxHQUFHLEdBQUcseURBQXlELENBQUM7SUFDcEUsSUFBSSxHQUEyQixDQUFDO0lBQ2hDLE9BQU8sQ0FBQyxHQUFHLEdBQUcsR0FBRyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQyxFQUFFO1FBQzVCLElBQUksRUFBQyxLQUFLLEVBQUUsR0FBRyxFQUFDLEdBQUcsR0FBRyxDQUFDLE1BQXNDLENBQUM7UUFDOUQsSUFBSSxHQUFHLENBQUMsTUFBTSxHQUFHLEtBQUssQ0FBQyxNQUFNLEVBQUU7WUFDN0IsK0NBQStDO1lBQy9DLHVDQUF1QztZQUN2QyxHQUFHLEdBQUcsR0FBRyxLQUFLLENBQUMsS0FBSyxDQUFDLENBQUMsRUFBRSxDQUFDLEdBQUcsQ0FBQyxNQUFNLENBQUMsR0FBRyxHQUFHLEVBQUUsQ0FBQztTQUM5QztRQUVELElBQUksUUFBUS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ID0gc29ydGVkR3JvdXBzW2ldW3NvcnRlZEdyb3Vwc1tpXS5sZW5ndGggLSAxXTtcbiAgICBsZXQgY3VyciA9IHJhbmdlWzBdO1xuICAgIG5lZWRzU29ydCA9IG5lZWRzU29ydCB8fCBjdXJyIDwgcHJldjtcbiAgICBuZWVkc1VuaXF1ZSA9IG5lZWRzVW5pcXVlIHx8IGN1cnIgPD0gcHJldjtcbiAgICBpZiAobmVlZHNTb3J0ICYmIG5lZWRzVW5pcXVlKSB7XG4gICAgICBicmVhaztcbiAgICB9XG4gIH1cblxuICBsZXQgbnVtYmVycyA9IChbXSBhcyBudW1iZXJbXSkuY29uY2F0KC4uLihzb3J0ID8gc29ydGVkR3JvdXBzIDogZ3JvdXBzKSk7XG5cbiAgaWYgKGdyb3Vwcy5sZW5ndGggPiAxKSB7XG4gICAgaWYgKHVuaXF1ZSAmJiBuZWVkc1VuaXF1ZSkge1xuICAgICAgbmVlZHNVbmlxdWUgPSBmYWxzZTtcbiAgICAgIG51bWJlcnMgPSBbLi4ubmV3IFNldChudW1iZXJzKV07XG4gICAgfVxuICAgIGlmIChzb3J0ICYmIG5lZWRzU29ydCkge1xuICAgICAgbmVlZHNTb3J0ID0gZmFsc2U7XG4gICAgICBudW1iZXJzLnNvcnQoKGEsIGIpID0+IGEgLSBiKTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gT2JqZWN0LmRlZmluZVByb3BlcnRpZXMobnVtYmVycywge1xuICAgIG5lZWRzU29ydDogeyB2YWx1ZTogbmVlZHNTb3J0LCB3cml0YWJsZTogZmFsc2UsIGVudW1lcmFibGU6IGZhbHNlIH0sXG4gICAgbmVlZHNVbmlxdWU6IHsgdmFsdWU6IG5lZWRzVW5pcXVlLCB3cml0YWJsZTogZmFsc2UsIGVudW1lcmFibGU6IGZhbHNlIH0sXG4gIH0pO1xufVxuXG4iXX0= |
@@ -8,3 +8,3 @@ export default function stringList(str, { sort = true, unique = true } = {}) { | ||
while ((res = pat.exec(str))) { | ||
let { start, end } = res.groups; | ||
let { start, end = start } = res.groups; | ||
if (end.length < start.length) { | ||
@@ -53,2 +53,2 @@ // if we have a range such as 110-15, then copy | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5nLWxpc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc3RyaW5nLWxpc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE9BQU8sVUFBVSxVQUFVLENBQ2hDLEdBQVcsRUFDWCxFQUFFLElBQUksR0FBRyxJQUFJLEVBQUUsTUFBTSxHQUFHLElBQUksRUFBRSxHQUFHLEVBQUU7SUFFbkMsSUFBSSxNQUFNLEdBQWUsRUFBRSxDQUFDO0lBQzVCLGlEQUFpRDtJQUNqRCxnREFBZ0Q7SUFDaEQsSUFBSSxHQUFHLEdBQUcseURBQXlELENBQUM7SUFDcEUsSUFBSSxHQUEyQixDQUFDO0lBQ2hDLE9BQU8sQ0FBQyxHQUFHLEdBQUcsR0FBRyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQyxFQUFFO1FBQzVCLElBQUksRUFBQyxLQUFLLEVBQUUsR0FBRyxFQUFDLEdBQUcsR0FBRyxDQUFDLE1BQXNDLENBQUM7UUFDOUQsSUFBSSxHQUFHLENBQUMsTUFBTSxHQUFHLEtBQUssQ0FBQyxNQUFNLEVBQUU7WUFDN0IsK0NBQStDO1lBQy9DLHVDQUF1QztZQUN2QyxHQUFHLEdBQUcsR0FBRyxLQUFLLENBQUMsS0FBSyxDQUFDLENBQUMsRUFBRSxDQUFDLEdBQUcsQ0FBQyxNQUFNLENBQUMsR0FBRyxHQUFHLEVBQUUsQ0FBQztTQUM5QztRQUVELElBQUksUUFBUSxHQUFHLFFBQVEsQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFDbkMsSUFBSSxNQUFNL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AgbmVlZHNTb3J0ID0gbmVlZHNTb3J0IHx8IGN1cnIgPCBwcmV2O1xuICAgIG5lZWRzVW5pcXVlID0gbmVlZHNVbmlxdWUgfHwgY3VyciA8PSBwcmV2O1xuICAgIGlmIChuZWVkc1NvcnQgJiYgbmVlZHNVbmlxdWUpIHtcbiAgICAgIGJyZWFrO1xuICAgIH1cbiAgfVxuXG4gIGxldCBudW1iZXJzID0gKFtdIGFzIG51bWJlcltdKS5jb25jYXQoLi4uKHNvcnQgPyBzb3J0ZWRHcm91cHMgOiBncm91cHMpKTtcblxuICBpZiAoZ3JvdXBzLmxlbmd0aCA+IDEpIHtcbiAgICBpZiAodW5pcXVlICYmIG5lZWRzVW5pcXVlKSB7XG4gICAgICBuZWVkc1VuaXF1ZSA9IGZhbHNlO1xuICAgICAgbnVtYmVycyA9IFsuLi5uZXcgU2V0KG51bWJlcnMpXTtcbiAgICB9XG4gICAgaWYgKHNvcnQgJiYgbmVlZHNTb3J0KSB7XG4gICAgICBuZWVkc1NvcnQgPSBmYWxzZTtcbiAgICAgIG51bWJlcnMuc29ydCgoYSwgYikgPT4gYSAtIGIpO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhudW1iZXJzLCB7XG4gICAgbmVlZHNTb3J0OiB7IHZhbHVlOiBuZWVkc1NvcnQsIHdyaXRhYmxlOiBmYWxzZSwgZW51bWVyYWJsZTogZmFsc2UgfSxcbiAgICBuZWVkc1VuaXF1ZTogeyB2YWx1ZTogbmVlZHNVbmlxdWUsIHdyaXRhYmxlOiBmYWxzZSwgZW51bWVyYWJsZTogZmFsc2UgfSxcbiAgfSk7XG59XG5cbiJdfQ== |
{ | ||
"name": "@ckirby/mr-lister", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "format lists of numbers, letters, or arbitrary items", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
69334
0