From 2884c33c8c04c630ac38fb70db4e859918b544e3 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 25 Aug 2024 14:12:13 +0200 Subject: [PATCH] Rename urlParser files to urlParserLegacy --- src/utils/{urlParser.js => urlParserLegacy.js} | 2 +- tests/utils/{urlParser.test.js => urlParserLegacy.test.js} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/utils/{urlParser.js => urlParserLegacy.js} (97%) rename tests/utils/{urlParser.test.js => urlParserLegacy.test.js} (98%) diff --git a/src/utils/urlParser.js b/src/utils/urlParserLegacy.js similarity index 97% rename from src/utils/urlParser.js rename to src/utils/urlParserLegacy.js index 6779707..aee5690 100644 --- a/src/utils/urlParser.js +++ b/src/utils/urlParserLegacy.js @@ -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"); diff --git a/tests/utils/urlParser.test.js b/tests/utils/urlParserLegacy.test.js similarity index 98% rename from tests/utils/urlParser.test.js rename to tests/utils/urlParserLegacy.test.js index f5953aa..0ce7087 100644 --- a/tests/utils/urlParser.test.js +++ b/tests/utils/urlParserLegacy.test.js @@ -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", () => {