Comparing version 2.1.2 to 2.1.3
@@ -691,4 +691,4 @@ "use strict"; | ||
const normalize = (s) => s | ||
// remove single line breaks | ||
.replace(/([^\n])\n[ \t]*([^\n])/g, '$1 $2') | ||
// remove single line breaks, except for lists | ||
.replace(/([^\n])\n[ \t]*([^\n])/g, (_, $1, $2) => !/^[-*]/.test($2) ? `${$1} ${$2}` : `${$1}\n${$2}`) | ||
// normalize mid-line whitespace | ||
@@ -695,0 +695,0 @@ .replace(/([^\n])[ \t]+([^\n])/g, '$1 $2') |
@@ -682,4 +682,4 @@ import { inspect } from 'node:util'; | ||
const normalize = (s) => s | ||
// remove single line breaks | ||
.replace(/([^\n])\n[ \t]*([^\n])/g, '$1 $2') | ||
// remove single line breaks, except for lists | ||
.replace(/([^\n])\n[ \t]*([^\n])/g, (_, $1, $2) => !/^[-*]/.test($2) ? `${$1} ${$2}` : `${$1}\n${$2}`) | ||
// normalize mid-line whitespace | ||
@@ -686,0 +686,0 @@ .replace(/([^\n])[ \t]+([^\n])/g, '$1 $2') |
{ | ||
"name": "jackspeak", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "A very strict and proper argument parser.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
210285