Skip to content

Commit

Permalink
fix issue #470 (#476)
Browse files Browse the repository at this point in the history
authored-by: Ndibe Raymond Olisaemeka <[email protected]>
  • Loading branch information
NdibeRaymond authored May 14, 2022
1 parent dc27358 commit 9549b9d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1337,9 +1337,10 @@ export const validationSchema = Yup.object().shape({
}
})
.test('visible_to_unsupported', 'visible_to_unsupported', publish => {
const re = /^[a-z0-9_-]{3,16}$/i;
const re = /^[a-z0-9@._+-]{1,150}$/i
let unsupported = false;
for (let username of publish.visible_to) {
console.log("kdlskdlksd", username);
if (!re.test(username)) {
unsupported = true;
}
Expand Down

0 comments on commit 9549b9d

Please sign in to comment.