@ltht-react/utils
Advanced tools
Comparing version 1.1.37 to 1.1.38
@@ -6,2 +6,10 @@ # Change Log | ||
## 1.1.38 (2022-01-10) | ||
**Note:** Version bump only for package @ltht-react/utils | ||
## 1.1.37 (2022-01-07) | ||
@@ -8,0 +16,0 @@ |
@@ -11,3 +11,8 @@ "use strict"; | ||
.split(/\s|_/) | ||
.map(function (word) { return word.replace(word[0], word[0].toUpperCase()); }) | ||
.map(function (word) { | ||
if (word.length > 0) { | ||
return word.replace(word[0], word[0].toUpperCase()); | ||
} | ||
return word; | ||
}) | ||
.join(' '); | ||
@@ -14,0 +19,0 @@ }; |
@@ -29,4 +29,8 @@ "use strict"; | ||
}); | ||
it('string with multiple spaces formats correctly', function () { | ||
var value = 'test test'; | ||
expect(title_case_1.default(value)).toEqual('Test Test'); | ||
}); | ||
}); | ||
}); | ||
//# sourceMappingURL=title-case.test.js.map |
{ | ||
"name": "@ltht-react/utils", | ||
"version": "1.1.37", | ||
"version": "1.1.38", | ||
"description": "> TODO: description", | ||
@@ -25,5 +25,5 @@ "author": "Jonny Smith <jonny.asmith@gmail.com>", | ||
"dependencies": { | ||
"@ltht-react/types": "^1.0.35" | ||
"@ltht-react/types": "^1.0.36" | ||
}, | ||
"gitHead": "c3c727af180a1e62f182f0970def4806b94aea8f" | ||
"gitHead": "d94cbc006199d107384b5949aff081bf12d40a0c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
108997
1217
Updated@ltht-react/types@^1.0.36