humanization
Advanced tools
Comparing version 6.2.1 to 6.2.2
@@ -11,7 +11,6 @@ "use strict"; | ||
exports.process = function (inputString) { | ||
var words = inputString.split(" ").map(function (word) { | ||
if (word === "") | ||
return [""]; // Already irreducible | ||
return word.split(""); | ||
}); | ||
var words = inputString | ||
.split(" ") | ||
.filter(function (word) { return word !== ""; }) | ||
.map(function (word) { return word.split(""); }); | ||
return words.map(function (word) { | ||
@@ -18,0 +17,0 @@ return word.map(function (character) { |
@@ -27,7 +27,2 @@ "use strict"; | ||
[{ source: "\n", transformed: ["\n"] }], | ||
[{ source: "", transformed: [""] }], | ||
[{ source: "", transformed: [""] }], | ||
[{ source: "", transformed: [""] }], | ||
[{ source: "", transformed: [""] }], | ||
[{ source: "", transformed: [""] }], | ||
[ | ||
@@ -47,9 +42,5 @@ { source: "h", transformed: ["h"] }, | ||
{ source: "\n", transformed: ["\n"] } | ||
], | ||
[{ source: "", transformed: [""] }], | ||
[{ source: "", transformed: [""] }], | ||
[{ source: "", transformed: [""] }], | ||
[{ source: "", transformed: [""] }] | ||
] | ||
]); | ||
}); | ||
}); |
{ | ||
"name": "humanization", | ||
"version": "6.2.1", | ||
"version": "6.2.2", | ||
"description": "To err is human", | ||
@@ -26,3 +26,3 @@ "repository": "https://github.com/dzucconi/humanization", | ||
"cz-conventional-changelog": "3.0.2", | ||
"husky": "3.0.5", | ||
"husky": "3.0.7", | ||
"jest": "24.9.0", | ||
@@ -29,0 +29,0 @@ "semantic-release": "15.13.24", |
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
46121
1036