[PR #2576] [CLOSED] Allow uppercase letters in email field #5152

Closed
opened 2026-10-31 20:45:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/2576
Author: @nima1024m
Created: 10/8/2024
Status: ❌ Closed

Base: main ← Head: main


📝 Commits (1)

  • ecd91ae Allowed uppercase letters in email field

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 web/service/inbound.go (+2 -2)

📄 Description

Dear MHSanaei,

I hope this message finds you well. First, I want to express my sincere appreciation for your dedicated work on the 3x-ui project. Your efforts have greatly enhanced the usability of the xray proxy application, and I commend you for your commitment to improving the software.

I am reaching out to address a recent change that has caused some challenges for users, including myself. The decision to restrict emails to only lowercase letters has made it difficult for many of us to upgrade to newer versions of 3x-ui. While I understand the intention behind preventing spaces in emails, I believe that allowing uppercase letters is crucial for maintaining readability and facilitating user management. The diversity in email formatting is particularly important for many users who have utilized uppercase letters in their existing email addresses.

To address this issue, I have prepared a pull request aimed at restoring the ability to use uppercase letters in emails. The current regex pattern used for email validation is:

^[a-z0-9@._-]+$

This pattern restricts email addresses to lowercase letters and specific characters, limiting user flexibility. My proposed regex pattern is:

^[\w@.-]+$

Technical Changes Behind the New Regex Pattern:

  1. \w Character Class: The \w shorthand matches any word character, which includes lowercase letters (a-z), uppercase letters (A-Z), digits (0-9), and underscores (_). This change allows for the inclusion of uppercase letters in email addresses, improving readability and user experience.
  2. Allowed Characters: The characters @, ., and - are retained in both patterns, ensuring that standard email formatting remains valid.

This adjustment will benefit not only my use case but also many other users who rely on the flexibility of character choices for better user identification and management.

I kindly request that you consider accepting this pull request. It would greatly enhance the experience for all users and allow us to continue benefiting from your excellent work on this project.

Thank you for your attention to this matter, and I appreciate your continued efforts in developing 3x-ui.

Best regards,
Nima


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/2576 **Author:** [@nima1024m](https://github.com/nima1024m) **Created:** 10/8/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`ecd91ae`](https://github.com/MHSanaei/3x-ui/commit/ecd91aef50a1900c2f653f089dc314fdd3bcf16a) Allowed uppercase letters in email field ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `web/service/inbound.go` (+2 -2) </details> ### 📄 Description Dear MHSanaei, I hope this message finds you well. First, I want to express my sincere appreciation for your dedicated work on the 3x-ui project. Your efforts have greatly enhanced the usability of the xray proxy application, and I commend you for your commitment to improving the software. I am reaching out to address a recent change that has caused some challenges for users, including myself. The decision to restrict emails to only lowercase letters has made it difficult for many of us to upgrade to newer versions of 3x-ui. While I understand the intention behind preventing spaces in emails, I believe that allowing uppercase letters is crucial for maintaining readability and facilitating user management. The diversity in email formatting is particularly important for many users who have utilized uppercase letters in their existing email addresses. To address this issue, I have prepared a pull request aimed at restoring the ability to use uppercase letters in emails. The current regex pattern used for email validation is: `^[a-z0-9@._-]+$` This pattern restricts email addresses to lowercase letters and specific characters, limiting user flexibility. My proposed regex pattern is: `^[\w@.-]+$` **Technical Changes Behind the New Regex Pattern:** 1. **\w Character Class:** The \w shorthand matches any word character, which includes lowercase letters (a-z), uppercase letters (A-Z), digits (0-9), and underscores (_). This change allows for the inclusion of uppercase letters in email addresses, improving readability and user experience. 2. **Allowed Characters:** The characters `@`, `.`, and `-` are retained in both patterns, ensuring that standard email formatting remains valid. This adjustment will benefit not only my use case but also many other users who rely on the flexibility of character choices for better user identification and management. I kindly request that you consider accepting this pull request. It would greatly enhance the experience for all users and allow us to continue benefiting from your excellent work on this project. Thank you for your attention to this matter, and I appreciate your continued efforts in developing 3x-ui. Best regards, Nima --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:45:03 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5152
No description provided.