Skip to content

Commit

Permalink
fixed backtracking regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducica committed Sep 18, 2024
1 parent b53e36c commit 11eaf1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const CommunityInvitationsModal = ({ rolesCanInvite, community }) => {
setSubmitting(true);
try {
const response = await http.post(
community.links.invitations + "dada",
community.links.invitations,
serializedValues
);
if (response.status === 204) {
Expand All @@ -61,7 +61,7 @@ export const CommunityInvitationsModal = ({ rolesCanInvite, community }) => {
setSuccessMessage("");
setHttpError("");
}
}, 3000);
}, 2500);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const defaultEmailOptions = {
};

const displayName =
/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\,\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s]*<(.+)>$/i;
/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}(?:[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\,\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s]{0,256})?<(.+)>$/i;
const emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i;
const quotedEmailUser =
/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i;
Expand Down

0 comments on commit 11eaf1b

Please sign in to comment.