fix lint warning

This commit is contained in:
Roland Osborne 2023-05-06 23:51:20 -07:00
parent 1961042e0e
commit c9d0dca5b0

View File

@ -62,7 +62,7 @@ export function useCreateAccount() {
updateState({ confirm });
},
isDisabled: () => {
const restricted = new RegExp('[!@#$%^&*()\ ,.?":{}|<>]', 'i');
const restricted = new RegExp('[!@#$%^&*() ,.?":{}|<>]', 'i');
if (state.username === '' || restricted.test(state.username) || state.password === '' ||
state.password !== state.confirm || !checked || state.validateStatus === 'error') {
return true