Skip to content

Commit

Permalink
change to 60%
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbarnum4 committed Aug 31, 2024
1 parent 3e16df6 commit 4f9d44b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Form/elements/PlainTextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const normalizeText = (value: string) => {
/** Capitalized letters / total letters */
const capAvg = capOnlyLen / len;

// If more than one letter and more than 50% of letters are capitalized
if (len > 1 && capAvg > 0.67) {
// If more than 60% of letters are capitalized
if (len > 1 && capAvg >= 0.6) {
return capFirstLetter(value.toLowerCase());
}

Expand Down

0 comments on commit 4f9d44b

Please sign in to comment.