1
0
Fork 0
forked from svrjs/svrjs

Change the comment above the URL parser function

This commit is contained in:
Dorian Niemiec 2024-08-28 11:09:26 +02:00
parent a4ca117020
commit 32d29be09f

View file

@ -1,6 +1,6 @@
const url = require("url"); const url = require("url");
// SVR.JS URL parser function (needed only for SVR.JS 2.x and 3.x mods) // SVR.JS URL parser function (compatible with legacy Node.JS URL parsing function)
function parseURL(uri, prepend) { function parseURL(uri, prepend) {
// Replace newline characters with its respective URL encodings // Replace newline characters with its respective URL encodings
uri = uri.replace(/\r/g, "%0D").replace(/\n/g, "%0A"); uri = uri.replace(/\r/g, "%0D").replace(/\n/g, "%0A");