readline-utils
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -350,3 +350,8 @@ 'use strict'; | ||
utils.breakLines = function(lines, width) { | ||
var regex = new RegExp('(?:(?:\\033[[0-9;]*m)*.?){1,' + width + '}', 'g'); | ||
var quantifier = ''; | ||
if (width > 1) { | ||
quantifier = '{1,' + width + '}'; | ||
} | ||
var regex = new RegExp('(?:(?:\\033[[0-9;]*m)*.?)' + quantifier, 'g'); | ||
return lines.map(function(line) { | ||
@@ -353,0 +358,0 @@ var matches = line.match(regex); |
{ | ||
"name": "readline-utils", | ||
"description": "Readline utils, for moving the cursor, clearing lines, creating a readline interface, and more.", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"homepage": "https://github.com/enquirer/readline-utils", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
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
31631
691