We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a65b51 commit 8f8f8bcCopy full SHA for 8f8f8bc
src/components/PromptDialog.js
@@ -22,7 +22,7 @@ function PromptDialog(props) {
22
}
23
24
function handleSubmit() {
25
- if (!user.patron && !value.match(/^[\p{L}\p{M}\p{N}\p{P}\p{Zs}]*$/u)) {
+ if (!user.admin && !value.match(/^[\p{L}\p{M}\p{N}\p{P}\p{Zs}]*$/u)) {
26
alert("Please use only letters, numbers, and punctuation.");
27
} else {
28
onClose(censorText(value));
0 commit comments