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 2.6.0 to 2.6.1

4

package.json
{
"name": "@ckirby/mr-lister",
"version": "2.6.0",
"version": "2.6.1",
"description": "format lists of numbers, letters, or arbitrary items",

@@ -33,3 +33,3 @@ "main": "./src/index",

"dependencies": {
"@ckirby/block-re": "1.1.2"
"@ckirby/block-re": "^2.0.0"
},

@@ -36,0 +36,0 @@ "bugs": {

@@ -12,9 +12,9 @@ const re = require('@ckirby/block-re');

// match one or more items
const rangePattern = re('g')`(?:
const rangePattern = re`/(?:
(?: ${item} )
// match trailing punctuation and a conjunction if there are more numbers thereafter
(?: [\s,;]* ${conjunctions}? \s* (?= ${item}) )?
)+`;
)+/g`;
const rangeToFind = re('g')`
const rangeToFind = re`/
\b (?<label>

@@ -30,3 +30,3 @@ // allow a label made of non-digit word chars

(?<range>${rangePattern})
`;
/g`;
return matchAll(text, rangeToFind).map(

@@ -33,0 +33,0 @@ ({ index, 0: match, groups: { range, label = `` } }) => {

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