- Notifications
You must be signed in to change notification settings - Fork492
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
fix(ipv6 regex matching): replaced existing regex for IPv4/6 address …#4066
base:develop
Are you sure you want to change the base?
fix(ipv6 regex matching): replaced existing regex for IPv4/6 address …#4066
Conversation
…matching with new oneCurrent regex does not correctly capture valid ipv6 addresses, such as fd01::3:172:20:24:5 andthinks 127.0.0.0.0.0.1 is a valid address. This PR addresses these issues.fixsct#4012
MilanJa commentedMar 7, 2025
Since they're being reused, you might as well extract those regex and put them into a |
I think this is great feedback. Would you mind adopting this@lmiklosko? |
Good idea@MilanJa. I've split those into separate regex IPv4/IPv6 and DNS, improving clarity. Might not be 100% accurate (eg. still matches 256.256.256.256 when combined with DNS matcher), but unlike before, allows all valid IPv6 addresses. |
…matching with new one
Current regex does not correctly capture valid ipv6 addresses, such as fd01::3:172:20:24:5 and thinks 127.0.0.0.0.0.1 is a valid address. This PR addresses these issues.
fix#4012
Description
Screenshot (if UI-related)
To-Dos
yarn build
yarn i18n:extract
Issues Fixed or Closed