Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
valicord
on May 20, 2024
|
parent
|
context
|
favorite
| on:
The problem with new URL(), and how URL.parse() fi...
If you're expecting a string to be a URL, failing to parse it as a URL is indeed an unexpected situation.
maxbond
on May 20, 2024
[–]
An invalid URL in a config file is exceptional. An invalid URL typed in by a user or from an external source (eg the body of an API request or inside of some HTML) is Tuesday.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: