Backend half
This commit is contained in:
Generated
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
import { escapeUri } from "./escape-uri";
|
||||
export const escapeUriPath = (uri) => uri.split("/").map(escapeUri).join("/");
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export const escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
|
||||
const hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export * from "./escape-uri";
|
||||
export * from "./escape-uri-path";
|
||||
Reference in New Issue
Block a user