@directus/format-title
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -137,2 +137,6 @@ 'use strict'; | ||
// If the word is the first word in the sentence, but it's not a specially | ||
// cased word, return the capitalized string | ||
if (index === 0) return str; | ||
if (prepositions.includes(lowercaseStr)) return lowercaseStr; | ||
@@ -139,0 +143,0 @@ if (conjunctions.includes(lowercaseStr)) return lowercaseStr; |
@@ -133,2 +133,6 @@ import decamelize from 'decamelize'; | ||
// If the word is the first word in the sentence, but it's not a specially | ||
// cased word, return the capitalized string | ||
if (index === 0) return str; | ||
if (prepositions.includes(lowercaseStr)) return lowercaseStr; | ||
@@ -135,0 +139,0 @@ if (conjunctions.includes(lowercaseStr)) return lowercaseStr; |
{ | ||
"name": "@directus/format-title", | ||
"version": "2.2.0", | ||
"version": "2.2.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
108682
704