1
0
Fork 0
forked from svrjs/svrjs

Rename urlParser files to urlParserLegacy

This commit is contained in:
Dorian Niemiec 2024-08-25 14:12:13 +02:00
parent aa4e4d0c15
commit 2884c33c8c
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -1,4 +1,4 @@
const parseURL = require("../../src/utils/urlParser.js");
const parseURL = require("../../src/utils/urlParserLegacy.js");
describe("URL parser", () => {
test("should parse a simple URL", () => {