/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
/* *JoinalltheargumentstogetherandnormalizetheresultingURI. *TheinitialpathmustbeanfullURIwithaprotocol(i.e.http://).
*/
exports.joinURI = (initialPath, ...paths) => {
let url = URL.parse(initialPath); if (!url) { returnnull;
}
for (const path of paths) { if (path) {
url = new URL(path, url);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.