Skip to content

Conversation

@mpivchev
Copy link
Collaborator

@mpivchev mpivchev commented Dec 22, 2025

Email validation for shares did not allow special localized characters in emails (ex. ß), but switching the regex from ASCII to Unicode fixes the issue.

  • Also now ignores whitespaces when searching sharees.
image

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates email validation in the share functionality to support Unicode characters (such as ß, ü) instead of only ASCII characters, and adds whitespace trimming when searching for sharees. The email validation function is refactored from duplicate local functions to a single extension method.

  • Replaced ASCII-only email regex with Unicode-aware regex pattern supporting international characters
  • Consolidated duplicate isValidEmail functions into a single extension method
  • Added whitespace trimming to the search functionality

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Milen Pivchev <[email protected]>
@nextcloud nextcloud deleted a comment from Copilot AI Dec 22, 2025
@nextcloud nextcloud deleted a comment from Copilot AI Dec 22, 2025
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.

2 participants