added helper

This commit is contained in:
2023-03-13 22:33:18 +10:00
parent c0e7adcc42
commit 64fd34ff1c

View File

@@ -0,0 +1,6 @@
export const urlStripAttributes = (url: string): string => {
const urlObject = new URL(url);
urlObject.search = "";
urlObject.hash = "";
return urlObject.toString();
};