wordwrapjs
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -89,3 +89,7 @@ 'use strict' | ||
words.forEach(function (word) { | ||
if (word.length > options.width) { | ||
var wordLength = options.ignore | ||
? replaceIgnored(word, options.ignore).length | ||
: word.length | ||
if (wordLength > options.width) { | ||
var letters = word.split('') | ||
@@ -92,0 +96,0 @@ var section |
{ | ||
"name": "wordwrapjs", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Word-wrapping for javascript.", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/75lb/wordwrapjs.git", |
@@ -81,2 +81,6 @@ var test = require('tape') | ||
t.deepEqual( | ||
wrap.lines('\u001b[4m--------\u001b[0m', { width: 10, break: true, ignore: /\u001b.*?m/g }), | ||
[ '\u001b[4m--------\u001b[0m' ] | ||
) | ||
t.deepEqual( | ||
wrap.lines( | ||
@@ -83,0 +87,0 @@ 'onetwothreefour fivesixseveneight', |
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
13484
261