parent
2f338ecb09
commit
93eaf0fdfd
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue