forked from svrjs/svrjs
Rename urlParser files to urlParserLegacy
This commit is contained in:
parent
aa4e4d0c15
commit
2884c33c8c
2 changed files with 2 additions and 2 deletions
|
@ -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");
|
|
@ -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", () => {
|
Reference in a new issue