mirror of
https://github.com/balzack/databag.git
synced 2025-03-13 00:50:03 +00:00
fix lint warning
This commit is contained in:
parent
1961042e0e
commit
c9d0dca5b0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user