Skip to content

Commit 8f8f8bc

Browse files
committed
Let admins use any characters
1 parent 9a65b51 commit 8f8f8bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/PromptDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function PromptDialog(props) {
2222
}
2323

2424
function handleSubmit() {
25-
if (!user.patron && !value.match(/^[\p{L}\p{M}\p{N}\p{P}\p{Zs}]*$/u)) {
25+
if (!user.admin && !value.match(/^[\p{L}\p{M}\p{N}\p{P}\p{Zs}]*$/u)) {
2626
alert("Please use only letters, numbers, and punctuation.");
2727
} else {
2828
onClose(censorText(value));

0 commit comments

Comments
 (0)