We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Node.js version: v23.9.0
OS version: WSL2 Ubuntu: Linux 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Linux 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Description: ipv6 hostnames are not correctly matched in urls
Matches only the ::1 part in http://[::1]/
::1
http://[::1]/
It should match the whole http://[::1]/
const urlRegexSafe = require('url-regex-safe'); // Expected: http://[::1]/ // Actual: ::1 console.log('http://[::1]/'.match(urlRegexSafe()));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Node.js version:
v23.9.0
OS version:
WSL2 Ubuntu:
Linux 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Description:
ipv6 hostnames are not correctly matched in urls
Actual behavior
Matches only the
::1
part inhttp://[::1]/
Expected behavior
It should match the whole
http://[::1]/
Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: