fix: Display name is not validated properly (UI part)
- do not use the `alphanumericalExpanded: /^$|^[a-zA-Z0-9\-_\.\u0020]+$/` regex which contains the dot (`.`) character too; be explicit here and do what the error message says - the space character at start/end is validated above with the `startsWithSpaceValidator` CHERRY-PICK-TO: 2.28 Fixes #14127
This commit is contained in:
parent
42d3c1b42b
commit
56b9b9db11
|
@ -540,7 +540,7 @@ QtObject {
|
|||
errorMessage: qsTr("Display Names can’t start or end with a space")
|
||||
},
|
||||
StatusRegularExpressionValidator {
|
||||
regularExpression: regularExpressions.alphanumericalExpanded
|
||||
regularExpression: /^$|^[a-zA-Z0-9\-_\u0020]+$/
|
||||
errorMessage: qsTr("Invalid characters (use A-Z and 0-9, hyphens and underscores only)")
|
||||
},
|
||||
StatusMinLengthValidator {
|
||||
|
|
Loading…
Reference in New Issue