-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow quotes when typing 'delete' #1951
Conversation
Deployed to Cloudflare Pages
|
@@ -21,7 +21,9 @@ export function DeleteInputForm({ children, onCancel, onConfirm }: DeleteInputFo | |||
<FormField | |||
name="type_delete" | |||
validate={(value: string | undefined) => | |||
!value || value.toLowerCase() !== t('deleteForm.confirmationKeyword', 'delete').toLowerCase() | |||
!value || | |||
value.toLowerCase().replace(/['"“”]/g, '') !== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this enable you to write '''''''''delete'''''''''
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah 🤷 still seems fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also '''''d'e''l'e''t'e'''''
would be possible. But I guess it doesn't matter in the end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would personally rather see we remove apostrophes entirely. And mark the text different(italic, bold), that is supposed to be written down in confirmation dialog.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea
#1953
since our instructions are
To confirm and proceed, please type 'delete' below.