@intelligo.ai/object-to-schema
Advanced tools
Comparing version 2.2.8 to 2.2.9
@@ -11,3 +11,3 @@ "use strict"; | ||
var aa = { | ||
"companyName": "MISHRA GROUP VENTURE CAPITAL ADVISORS, corp., THE", | ||
"companyName": "PORTFOLIO ADVISORS SECONDARY AGGREGATOR - VENTURE CAPITAL, L.P.", | ||
"evictionId": 1836030810467466240.0, | ||
@@ -14,0 +14,0 @@ "bridge": null, |
@@ -22,3 +22,3 @@ "use strict"; | ||
function titleCaseTransformer(str) { | ||
return str | ||
return str.trim() | ||
.split(/\s/) | ||
@@ -189,6 +189,6 @@ .map(function (word) { return "".concat(word[0].toUpperCase()).concat(word.slice(1).toLowerCase()); }) | ||
]; | ||
var words = str.split(/\s/); | ||
var words = str.trim().split(/\s/); | ||
var transformedWords = words.map(function (word) { | ||
var lowercaseWord = word.toLowerCase(); | ||
if (businessStructureAbbreviations.some(function (abbr) { return lowercaseWord.includes(abbr.toLowerCase()); })) { | ||
var lowercaseWord = word.toLowerCase().replace(/,/g, ''); | ||
if (businessStructureAbbreviations.some(function (abbr) { return lowercaseWord === abbr.toLowerCase(); })) { | ||
return word; | ||
@@ -195,0 +195,0 @@ } |
{ | ||
"name": "@intelligo.ai/object-to-schema", | ||
"version": "2.2.8", | ||
"version": "2.2.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
97761