-
Notifications
You must be signed in to change notification settings - Fork 30k
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
URL parser behaviour change in 18.16.0 #47555
Comments
cc @nodejs/url |
I'm able to reproduce this: ➜ ~ node
Welcome to Node.js v18.16.0.
Type ".help" for more information.
> new URL('HTTP://AMAZON.COM').href
'http://amaZon.com/'
> Node.js 18.16.0 uses Ada for parsing while 18.15.0 does not, so I strongly suspect this is either a bug in Ada or a bug in Node.js that was introduced as part of the change set to include Ada. |
Node.js 19.7.0 and newer has this same issue. 19.6.1 does not. And again, 19.7.0 is the version where Ada is introduced. |
I will fix this in Ada. Thanks for reporting. |
That's odd. |
Wow. |
@lemire's pull request fixed this in Ada. We'll release a new version. |
Ada v2.1.0 will fix this issue. |
18.15.0
new URL(HTTP://AMAZON.COM).href
giveshttp://amazon.com/
18.16.0
new URL(HTTP://AMAZON.COM).href
giveshttp://amaZon.com/
It seems the capital letter Z is not lower cased. Is that expected or is it a regression ?
The text was updated successfully, but these errors were encountered: