-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
url: fix off-by-one error with parse()
Fixes: #5393 PR-URL: #5394 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Evan Lucas <[email protected]>
- Loading branch information
1 parent
3a331b6
commit 8b16ba3
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -851,6 +851,21 @@ var parseTests = { | |
pathname: '/:npm/npm', | ||
path: '/:npm/npm', | ||
href: 'git+ssh://[email protected]/:npm/npm' | ||
}, | ||
|
||
'https://*': { | ||
protocol: 'https:', | ||
slashes: true, | ||
auth: null, | ||
host: '', | ||
port: null, | ||
hostname: '', | ||
hash: null, | ||
search: null, | ||
query: null, | ||
pathname: '/*', | ||
path: '/*', | ||
href: 'https:///*' | ||
} | ||
|
||
}; | ||
|