Skip to content

Commit

Permalink
Remove ineffective guard against all caps (#723)
Browse files Browse the repository at this point in the history
Co-authored-by: ekzyis <ek@stacker.news>
  • Loading branch information
ekzyis and ekzyis authored Dec 30, 2023
1 parent dc15be9 commit c23799b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions components/link-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@ export function LinkForm ({ item, sub, editThreshold, children }) {
variables: { title: e.target.value }
})
}
if (e.target.value === e.target.value.toUpperCase()) {
setTitleOverride(e.target.value.replace(/\w\S*/g, txt =>
txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase()))
}
}}
maxLength={MAX_TITLE_LENGTH}
/>
Expand Down

0 comments on commit c23799b

Please sign in to comment.