Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Conversation

lukaw3d
Copy link
Member

@lukaw3d lukaw3d commented May 24, 2024

since our instructions are To confirm and proceed, please type 'delete' below.

@lukaw3d lukaw3d requested a review from lubej May 24, 2024 02:31
Copy link

github-actions bot commented May 24, 2024

Deployed to Cloudflare Pages

Latest commit: 5f1fe8b58771ce8e7fbacadf41277dc9703077f5
Status:✅ Deploy successful!
Preview URL: https://fe415f40.oasis-wallet.pages.dev

@@ -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, '') !==
Copy link
Collaborator

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'''''''''?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah 🤷 still seems fine

Copy link
Collaborator

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.

Copy link
Collaborator

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea
#1953

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants