Remove ineffective guard against all caps (#723)
Co-authored-by: ekzyis <ek@stacker.news>
This commit is contained in:
parent
dc15be914c
commit
c23799be81
@ -146,10 +146,6 @@ export function LinkForm ({ item, sub, editThreshold, children }) {
|
|||||||
variables: { title: e.target.value }
|
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}
|
maxLength={MAX_TITLE_LENGTH}
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user