Remove ineffective guard against all caps (#723)

Co-authored-by: ekzyis <ek@stacker.news>
This commit is contained in:
ekzyis 2023-12-30 21:38:41 +01:00 committed by GitHub
parent dc15be914c
commit c23799be81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}
/>