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

Enhance email validation: Allow top-level domains with 5 letters #2856

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

mrnicegyu11
Copy link
Contributor

What problem does this PR solve?

Currently singing up to ragflow using a mail-adress with associated top-level domains that have more than 4 chars will fail due to a regex validation that enforces just this.

In our use case, we'd like to use e-mail addresses with .swiss top-level domains, which is a valid TLD associated with the country switzerland in the IANA root database.

This change makes the validation accept 5-letter TLDs.

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe): Making validation for lenient, accepting more valid input.

Currently singing up to ragflow using a mail-adress with associated top-level domains that have more than 4 chars will fail due to a regex validation that enforces just this.

In our use case, we'd like to use e-mail addresses with `.swiss` top-level domains, which is a valid TLD associated with the country switzerland in the IANA root database.

This change makes the validation accept 5-letter TLDs.
@KevinHuSh KevinHuSh merged commit 6850fd6 into infiniflow:main Oct 16, 2024
1 check passed
Halfknow pushed a commit to Halfknow/ragflow that referenced this pull request Nov 11, 2024
…iniflow#2856)

### What problem does this PR solve?

Currently singing up to ragflow using a mail-adress with associated
top-level domains that have more than 4 chars will fail due to a regex
validation that enforces just this.

In our use case, we'd like to use e-mail addresses with `.swiss`
top-level domains, which is a valid TLD associated with the country
switzerland in the IANA root database.

This change makes the validation accept 5-letter TLDs.


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [x] Other (please describe): Making validation for lenient, accepting
more valid input.
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