-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
improvement : add domain name validation #894
Comments
Yes, we can add a |
hi, this kind of regex i guess : ^((?!-)[A-Za-z0-9-]{1,63}(?<!-).)+[A-Za-z]{2,}$ |
Are you interested in creating a PR that implements the action and adds tests? This action is very similar to other actions like |
If the questioner doesn’t want to, I’d do it. However, I’d only be able to manage it next week. I wanted to dive deeper into the valibot code anyway. But only if you agree, as the questioner hasn’t responded yet. |
I implemented it: #907 |
I am focusing on our v1 release at the moment. In the meantime, I recommend using the regex with our |
@fabian-hiller : A quick general question about PRs since I’m looking at one right now. Should the |
Yes, but I can also take care of the details because I know it can be hard to understand all the connections. |
/^((?!-)[A-Za-z0-9-]{1,63}(?<!-).)+[A-Za-z]{2,}$/.test('0' + '0-'.repeat(30) + '\x00') took about 10s to yield |
I see. That's a good news. We don't have to care about ReDoS now. |
Hello, as a IT guy i have to work sometimes with domain name, not url. Something to check if the input like :
or
have a valid domain name syntax.
Is this possible to add a action for validating this kind of inputs please ?
The text was updated successfully, but these errors were encountered: