Skip to content

Commit

Permalink
feat(next): space & delete char not allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
windsnow1025 committed Oct 16, 2024
1 parent 8d5c461 commit 97d2c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next/src/common/user/UserLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default class UserLogic {
}

validateInput(input: string) {
const asciiRegex = /^[\x20-\x7F]{4,32}$/;
const asciiRegex = /^[\x21-\x7E]{4,32}$/;
return asciiRegex.test(input);
}
}

0 comments on commit 97d2c1b

Please sign in to comment.