mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-03 02:06:19 +00:00
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
9b9c159f86
commit
c26110c5ef
@ -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…
x
Reference in New Issue
Block a user