fix: allow whitespaces in display and nicknames

Closes #8391
This commit is contained in:
Pascal Precht 2022-12-05 13:26:06 +01:00 committed by r4bbit
parent 2f338ecb09
commit 93eaf0fdfd
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ StatusModal {
validationMode: StatusInput.ValidationMode.IgnoreInvalidInput
validators: [
StatusRegularExpressionValidator {
validatorObj: RXValidator { regularExpression: /^[\w\d_-]*$/u }
validatorObj: RXValidator { regularExpression: /^[\w\d_ -]*$/u }
validate: function (value) {
return validatorObj.test(value)
}

View File

@ -402,8 +402,8 @@ QtObject {
errorMessage: qsTr("Username must be at least 5 characters")
},
StatusRegularExpressionValidator {
regularExpression: /^[a-zA-Z0-9\-_]+$/
errorMessage: qsTr("Only letters, numbers, underscores and hyphens allowed")
regularExpression: /^[a-zA-Z0-9\-_ ]+$/
errorMessage: qsTr("Only letters, numbers, underscores, whitespaces and hyphens allowed")
},
// TODO: Create `StatusMaxLengthValidator` in StatusQ
StatusValidator {