Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckirby/mr-lister

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckirby/mr-lister - npm Package Compare versions

Comparing version 3.0.1 to 3.1.0

14

dist/find-list.js

@@ -8,8 +8,2 @@ import re from "@ckirby/block-re";

export function findList(text, { item = /\d+(?:\s*[-–]\s*\d+)?\b/g } = {}) {
// match one or more items
const rangePattern = re `/(?:
(?: ${item} )
// match trailing punctuation and a conjunction if there are more numbers thereafter
(?: [\s,;]* ${conjunctions}? \s* (?= ${item}) )?
)+/g`;
const rangeToFind = re `/

@@ -25,3 +19,7 @@ \b (?<label>

\s*
(?<range>${rangePattern})
(?<range>(?:
(?: ${item} )
// match trailing punctuation and a conjunction if there are more numbers thereafter
(?: [\s,;]* ${conjunctions}? \s* (?= ${item}) )?
)+)
/g`;

@@ -51,2 +49,2 @@ return matchAll(text, rangeToFind).map((found) => {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmluZC1saXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2ZpbmQtbGlzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNsQyxPQUFPLFVBQVUsTUFBTSxrQkFBa0IsQ0FBQztBQUUxQywyREFBMkQ7QUFDM0Qsb0VBQW9FO0FBQ3BFLE1BQU0sWUFBWSxHQUNoQixrRkFBa0YsQ0FBQztBQU9yRixrQ0FBa0M7QUFDbEMsTUFBTSxVQUFVLFFBQVEsQ0FDdEIsSUFBWSxFQUNaLEVBQUUsSUFBSSxHQUFHLDBCQUEwQixFQUFFLEdBQUcsRUFBRTtJQVExQywwQkFBMEI7SUFDMUIsTUFBTSxZQUFZLEdB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9IGdyb3VwcyBhcyB7IHJhbmdlOiBzdHJpbmc7IGxhYmVsOiBzdHJpbmcgfTtcbiAgICByYW5nZSA9IHJhbmdlLnJlcGxhY2UoL1xccyooPzp0b3x0aHJ1fHRocm91Z2gpXFxzKi9naSwgXCItXCIpO1xuICAgIC8vIGdldCBhIGxpc3Qgb2YgdGhlIGluZGl2aWR1YWwgaXRlbXNcbiAgICBsZXQgaXRlbXMgPSBtYXRjaEFsbChtYXRjaCwgaXRlbSkubWFwKFxuICAgICAgKHg6IFJlZ0V4cE1hdGNoQXJyYXkpOiBJVEVNID0+ICh7XG4gICAgICAgIGluZGV4OiB4LmluZGV4ISxcbiAgICAgICAgaXRlbTogeFswXSxcbiAgICAgIH0pXG4gICAgKTtcblxuICAgIC8vIGdldCBhIGxpc3Qgb2YgYWxsIHRoZSBpbnRlZ2VycyB0aGUgcmFuZ2UgcmVmZXJzIHRvXG4gICAgbGV0IGxpc3QgPSBzdHJpbmdMaXN0KHJhbmdlKS5zbGljZSgpO1xuICAgIHJldHVybiB7IGluZGV4LCBpdGVtcywgbWF0Y2gsIGxhYmVsLCBsaXN0IH07XG4gIH0pO1xufVxuXG5mdW5jdGlvbiBtYXRjaEFsbCh0ZXh0OiBzdHJpbmcsIHBhdHRlcm46IFJlZ0V4cCkge1xuICBsZXQgcmVzO1xuICBsZXQgbWF0Y2hlczogUmVnRXhwRXhlY0FycmF5W10gPSBbXTtcbiAgd2hpbGUgKChyZXMgPSBwYXR0ZXJuLmV4ZWModGV4dCkpKSB7XG4gICAgbWF0Y2hlcy5wdXNoKHJlcyk7XG4gIH1cbiAgcmV0dXJuIG1hdGNoZXM7XG59XG4iXX0=

@@ -26,3 +26,3 @@ import { isInt, consolidateRanges, consolidateAlphaRanges } from "./utils.js";

if (andor)
andor = andor.replace(/^(?=\S)|(?<=\S)$/g, " ");
andor = andor.replace(/^(?=\S)/g, " ").replace(/(\S)$/g, "$1 ");
const { article } = options;

@@ -75,2 +75,2 @@ const comma = (_b = options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0pID0+IGAke2FydGljbGV9ICR7aXRlbX1gKTtcbiAgICB9XG4gIH1cbiAgaWYgKGFuZE9yUHJvdmlkZWQgJiYgbGlzdC5sZW5ndGggPiAyKSB7XG4gICAgbGlzdC5wdXNoKGAke2FuZG9yLnJlcGxhY2UoL15cXHMrLywgXCJcIil9JHtsaXN0LnBvcCgpfWApO1xuICB9XG4gIHJldHVybiBsaXN0LmpvaW4obGlzdC5sZW5ndGggPT09IDIgPyBhbmRvciB8fCBkZWxpbWl0ZXIgOiBkZWxpbWl0ZXIpO1xufVxuIl19
{
"name": "@ckirby/mr-lister",
"version": "3.0.1",
"version": "3.1.0",
"description": "format lists of numbers, letters, or arbitrary items",

@@ -21,3 +21,3 @@ "type": "module",

"prepublishOnly": "yarn compile",
"watch": "yarn tsc-watch",
"watch": "tsc -b tsconfig.json --watch",
"test": "yarn lint && yarn test:tape",

@@ -24,0 +24,0 @@ "test:ci": "yarn compile && yarn lint && yarn test:tape",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc