Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
unshiftio
/
url-parse
Public
Notifications
You must be signed in to change notification settings
Fork
112
Star
1k
Code
Issues
16
Pull requests
1
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Commits
Breadcrumbs
History for
url-parse
index.js
on
master
User selector
All users
Datepicker
All time
Commit history
Commits on Mar 4, 2022
[minor] Fix nits
lpinca
committed
b39b9f8
View commit details
Copy full SHA for b39b9f8
View code at this point
Browse repository at this point
Commits on Feb 23, 2022
[minor] Strip control characters from the end of the URL
Show description for 1e14ad3
lpinca
committed
1e14ad3
View commit details
Copy full SHA for 1e14ad3
View code at this point
Browse repository at this point
[minor] Trim the input only once
Show description for 20e3d93
lpinca
committed
20e3d93
View commit details
Copy full SHA for 20e3d93
View code at this point
Browse repository at this point
Commits on Feb 21, 2022
[fix] Improve handling of empty port
Show description for ce7a01f
lpinca
committed
ce7a01f
View commit details
Copy full SHA for ce7a01f
View code at this point
Browse repository at this point
Commits on Feb 20, 2022
[doc] Update JSDoc comment
lpinca
committed
0071490
View commit details
Copy full SHA for 0071490
View code at this point
Browse repository at this point
[minor] Use more descriptive variable name
lpinca
committed
a7044e3
View commit details
Copy full SHA for a7044e3
View code at this point
Browse repository at this point
[fix] Strip all control characters from the beginning of the URL
lpinca
committed
0e3fb54
View commit details
Copy full SHA for 0e3fb54
View code at this point
Browse repository at this point
Commits on Feb 19, 2022
[fix] Handle the case where the port is specified but empty
lpinca
committed
d5c6479
View commit details
Copy full SHA for d5c6479
View code at this point
Browse repository at this point
Commits on Feb 16, 2022
[fix] Readd the empty userinfo to `url.href` (#226)
Show description for ef45a13
lpinca
authored
ef45a13
View commit details
Copy full SHA for ef45a13
View code at this point
Browse repository at this point
Commits on Feb 13, 2022
Merge pull request #223 from unshiftio/fix/at-sign-handling-in-userinfo
Show description for 7b0b8a6
Swaagie
authored
7b0b8a6
View commit details
Copy full SHA for 7b0b8a6
View code at this point
Browse repository at this point
[minor] Simplify whitespace regex
lpinca
committed
193b44b
View commit details
Copy full SHA for 193b44b
View code at this point
Browse repository at this point
[fix] Remove CR, HT, and LF
Show description for 319851b
lpinca
committed
319851b
View commit details
Copy full SHA for 319851b
View code at this point
Browse repository at this point
Commits on Jan 30, 2022
[fix] Correctly handle userinfo containing the at sign
lpinca
committed
9be7ee8
View commit details
Copy full SHA for 9be7ee8
View code at this point
Browse repository at this point
Commits on Aug 23, 2021
[minor] Remove redundant assignment
lpinca
committed
36dd8b4
View commit details
Copy full SHA for 36dd8b4
View code at this point
Browse repository at this point
[minor] Remove dead code
lpinca
committed
5472388
View commit details
Copy full SHA for 5472388
View code at this point
Browse repository at this point
[fix] Handle the `username` and `password` properties
Show description for 53d4d6d
lpinca
committed
53d4d6d
View commit details
Copy full SHA for 53d4d6d
View code at this point
Browse repository at this point
Commits on Aug 14, 2021
[fix] Do not lose the password in the stringification process
Show description for 15b1dbd
lpinca
committed
15b1dbd
View commit details
Copy full SHA for 15b1dbd
View code at this point
Browse repository at this point
[fix] Handle the `auth` property (#213)
Show description for 993acbe
bluelovers
authored
993acbe
View commit details
Copy full SHA for 993acbe
View code at this point
Browse repository at this point
[fix] Do not add spurious slashes
Show description for d9e332b
lpinca
committed
d9e332b
View commit details
Copy full SHA for d9e332b
View code at this point
Browse repository at this point
Commits on Jul 25, 2021
[fix] Fix host parsing for file URLs (#210)
Show description for c798461
lpinca
authored
c798461
View commit details
Copy full SHA for c798461
View code at this point
Browse repository at this point
[fix] Sanitize only special URLs (#209)
Show description for 2d9ac2c
lpinca
authored
2d9ac2c
View commit details
Copy full SHA for 2d9ac2c
View code at this point
Browse repository at this point
Commits on Jul 24, 2021
[fix] Use `'null'` as `origin` for non special URLs
lpinca
committed
fb128af
View commit details
Copy full SHA for fb128af
View code at this point
Browse repository at this point
[fix] Add a leading slash only if the URL is special
Show description for fed6d9e
lpinca
committed
fed6d9e
View commit details
Copy full SHA for fed6d9e
View code at this point
Browse repository at this point
[fix] Do not incorrectly set the `slashes` property to `true`
Show description for 94872e7
lpinca
committed
94872e7
View commit details
Copy full SHA for 94872e7
View code at this point
Browse repository at this point
[fix] Ignore slashes after the protocol for special URLs
Show description for 81ab967
lpinca
committed
81ab967
View commit details
Copy full SHA for 81ab967
View code at this point
Browse repository at this point
Commits on May 18, 2021
[fix] Special case the `file:` protocol (#204)
Show description for d2979b5
lpinca
authored
d2979b5
View commit details
Copy full SHA for d2979b5
View code at this point
Browse repository at this point
Commits on Feb 18, 2021
[fix] Fixes relative path resolving #199 #200 (#201)
Show description for 750d8e8
3rd-Eden
authored
750d8e8
View commit details
Copy full SHA for 750d8e8
View code at this point
Browse repository at this point
Commits on Feb 17, 2021
[security] More backslash fixes (#197)
3rd-Eden
authored
d1e7e88
View commit details
Copy full SHA for d1e7e88
View code at this point
Browse repository at this point
Commits on Apr 12, 2019
[minor] Clean-up and additional tests for #173 #172
3rd-Eden
committed
a871896
View commit details
Copy full SHA for a871896
View code at this point
Browse repository at this point
Fix location argument, redirecting to regular expression (#173)
knownun
authored and
3rd-Eden
committed
d0f5c69
View commit details
Copy full SHA for d0f5c69
View code at this point
Browse repository at this point
Commits on Apr 11, 2019
[security] Trim left to prevent unsantitized input from generating false positives
3rd-Eden
committed
3ecd256
View commit details
Copy full SHA for 3ecd256
View code at this point
Browse repository at this point
Commits on Feb 19, 2019
[fix] Return the base URL pathname when the relative URL is empty (#166)
Show description for 52b9206
lpinca
authored
52b9206
View commit details
Copy full SHA for 52b9206
View code at this point
Browse repository at this point
Commits on Nov 5, 2018
[ocd] code style
3rd-Eden
committed
b15fd4a
View commit details
Copy full SHA for b15fd4a
View code at this point
Browse repository at this point
[fix] global is not defined (#160)
Show description for 7781ad8
benland
authored and
3rd-Eden
committed
7781ad8
View commit details
Copy full SHA for 7781ad8
View code at this point
Browse repository at this point
Commits on Aug 5, 2018
[codestyle] Mark location and parser in JSDoc as optional (#153)
GlennMatthys
authored and
lpinca
committed
4e14338
View commit details
Copy full SHA for 4e14338
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.