@directus/format-title
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -119,4 +119,3 @@ 'use strict'; | ||
'MySQL', | ||
'PostgreSQL', | ||
'WYSIWYG' | ||
'PostgreSQL' | ||
]; | ||
@@ -139,4 +138,6 @@ | ||
if (acronyms.includes(uppercaseStr)) return uppercaseStr; | ||
// If the word is the first word in the sentence, but it's not a specially | ||
// cased word, return the capitalized string | ||
// cased word or an acronym, return the capitalized string | ||
if (index === 0) return str; | ||
@@ -146,3 +147,2 @@ | ||
if (conjunctions.includes(lowercaseStr)) return lowercaseStr; | ||
if (acronyms.includes(uppercaseStr)) return uppercaseStr; | ||
@@ -149,0 +149,0 @@ return str; |
@@ -115,4 +115,3 @@ import decamelize from 'decamelize'; | ||
'MySQL', | ||
'PostgreSQL', | ||
'WYSIWYG' | ||
'PostgreSQL' | ||
]; | ||
@@ -135,4 +134,6 @@ | ||
if (acronyms.includes(uppercaseStr)) return uppercaseStr; | ||
// If the word is the first word in the sentence, but it's not a specially | ||
// cased word, return the capitalized string | ||
// cased word or an acronym, return the capitalized string | ||
if (index === 0) return str; | ||
@@ -142,3 +143,2 @@ | ||
if (conjunctions.includes(lowercaseStr)) return lowercaseStr; | ||
if (acronyms.includes(uppercaseStr)) return uppercaseStr; | ||
@@ -145,0 +145,0 @@ return str; |
{ | ||
"name": "@directus/format-title", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Custom string formatter that converts any string into [Title Case](http://www.grammar-monster.com/lessons/capital_letters_title_case.htm)", | ||
@@ -5,0 +5,0 @@ "main": "dist/format-title.cjs.js", |
Sorry, the diff of this file is too big to display
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
108712
704