nicer-toolbox
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "nicer-toolbox", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A toolbox of useful functions.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
function preventWidows(str) { | ||
const words = str.split(" "); | ||
const words = str.trim().split(" "); | ||
if (words.length < 3) return str; | ||
@@ -4,0 +4,0 @@ const nbsp = "\u00a0"; |
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
2125