Update frontend/src/validation-rules.js

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
This commit is contained in:
Moriz Wahl 2023-05-19 09:00:56 +02:00 committed by GitHub
parent a9c35a4c12
commit e007c2a193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,7 +148,7 @@ export const loadAllRules = (i18nCallback, apollo) => {
extend('usernameUnique', {
validate(value) {
if (!value.match(usernameRegex)) return true
if (!value.match(USERNAME_REGEX)) return true
return apollo
.query({
query: checkUsername,