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:
Lukáš Tinkl 2024-03-25 13:59:25 +01:00 committed by Lukáš Tinkl
parent 42d3c1b42b
commit 56b9b9db11
1 changed files with 1 additions and 1 deletions

View File

@ -540,7 +540,7 @@ QtObject {
errorMessage: qsTr("Display Names cant 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 {