-
-
Notifications
You must be signed in to change notification settings - Fork 636
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: properly manage RFC 3986 authority domain
check
#2351
Conversation
## PR overview Using the current regex expression only second level domains are accepted. However, that is not the way it is specified on RFC 3986. With the current implementation for instance all country code second-level domains (ccSLD) like domain.co.uk are not accepted. The fix allows multi-level domains. ### Detailed summary Changed `domainRegex` regex to allow multiple level domains.
@agsola is attempting to deploy a commit to the Wevm Team on Vercel. A member of the Team first needs to authorize it. |
🦋 Changeset detectedLatest commit: 17fa3b2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Please add a changeset with |
I've not used |
Co-authored-by: awkweb <tom@meagher.co>
PR overview
Using the current regex expression only second level domains are accepted. However, that is not the way it is specified on
RFC 3986
.With the current implementation for instance all domains using
country code second-level domains (ccSLD)
like domain.co.uk are not accepted (as they are third-level domains).The fix allows multi-level domains.
Detailed summary
Changed
domainRegex
regex var to allow multiple level domains.PR-Codex overview
This PR focuses on fixing the
createSiweMessage
domain check to comply with RFC 3986.Detailed summary
domainRegex
to be RFC 3986 compliantcreateSiweMessage
with valid domain inputs