Comparing version 0.3.1 to 1.0.0
@@ -26,5 +26,5 @@ /*! | ||
if (options.trim === true) { | ||
res = res.replace(/\s*$/, ''); | ||
res = res.replace(/[ \t]*$/gm, ''); | ||
} | ||
return res; | ||
}; |
{ | ||
"name": "word-wrap", | ||
"description": "Wrap words to a specified length.", | ||
"version": "0.3.1", | ||
"version": "1.0.0", | ||
"homepage": "https://github.com/jonschlinkert/word-wrap", | ||
@@ -28,2 +28,5 @@ "author": { | ||
}, | ||
"devDependencies": { | ||
"should": "^4.3.0" | ||
}, | ||
"keywords": [ | ||
@@ -42,6 +45,3 @@ "break", | ||
"wrap" | ||
], | ||
"devDependencies": { | ||
"should": "^4.3.0" | ||
} | ||
] | ||
} |
@@ -34,5 +34,5 @@ /*! | ||
it('should trim trailing whitespace:', function () { | ||
wrap(str, {trim: true}).should.equal(' A project without documentation is like a project \n that doesn\'t exist. Verb solves this by making it \n dead simple to generate project documentation, \n using simple markdown templates, with zero \n configuration required.'); | ||
wrap(str, {trim: true}).should.equal(' A project without documentation is like a project\n that doesn\'t exist. Verb solves this by making it\n dead simple to generate project documentation,\n using simple markdown templates, with zero\n configuration required.'); | ||
}); | ||
}); | ||
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
9553
0