@ckirby/mr-lister
Advanced tools
Comparing version 2.6.0 to 2.6.1
{ | ||
"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 = `` } }) => { |
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
8619
+ Added@ckirby/block-re@2.0.3(transitive)
- Removed@ckirby/block-re@1.1.2(transitive)
Updated@ckirby/block-re@^2.0.0