Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Display name is not validated properly (UI part) #14142

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

caybro
Copy link
Member

@caybro caybro commented Mar 25, 2024

What does the PR do

  • 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

Affected areas

Display name validation

Screenshot of functionality (including design for comparison)

  • I've checked the design and this PR matches it
Zaznam.obrazovky.z.2024-03-25.14-08-04.webm

- 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
@caybro caybro linked an issue Mar 25, 2024 that may be closed by this pull request
@status-im-auto
Copy link
Member

status-im-auto commented Mar 25, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 5cfa336 #1 2024-03-25 13:16:35 ~6 min tests/nim 📄log
✔️ 5cfa336 #1 2024-03-25 13:19:57 ~10 min macos/x86_64 🍎dmg
✔️ 5cfa336 #1 2024-03-25 13:20:57 ~11 min tests/ui 📄log
✔️ 5cfa336 #1 2024-03-25 13:26:28 ~16 min linux/x86_64 📦tgz
✔️ 5cfa336 #1 2024-03-25 13:28:46 ~18 min macos/aarch64 🍎dmg
✔️ 5cfa336 #1 2024-03-25 13:41:23 ~31 min windows/x86_64 💿exe

@caybro
Copy link
Member Author

caybro commented Mar 25, 2024

I wonder if I could reuse the existing:

readonly property var alphanumericalExpanded1: /^[a-zA-Z0-9\-_]+(?: [a-zA-Z0-9\-_]+)*$/

here...

@caybro caybro merged commit 56b9b9d into master Mar 25, 2024
8 checks passed
@caybro caybro deleted the 14127-display-name-is-not-validated-properly-ui-part branch March 25, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display name is not validated properly (UI part)
5 participants