Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
url: simplify loop in parser
  • Loading branch information
tniessen committed Jan 30, 2018
commit 44f42439f82054ed4390f2015f8c135a8c29421b
2 changes: 1 addition & 1 deletion lib/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ Url.prototype.resolveObject = function resolveObject(relative) {

// if the path is allowed to go above the root, restore leading ..s
if (!mustEndAbs && !removeAllDots) {
for (; up--; up) {
while (up--) {
srcPath.unshift('..');
}
}
Expand Down