MCPcopy Index your code
hub / github.com/devspace-sh/devspace / getHashParams

Function getHashParams

ui/src/lib/utils.tsx:52–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52export function getHashParams() {
53 const hashParams = {};
54 const a = /\+/g; // Regex for replacing addition symbol with a space
55 const r = /([^&;=]+)=?([^&;]*)/g;
56 const d = (s: string) => decodeURIComponent(s.replace(a, ' '));
57 const q = window.location.hash.substring(1);
58
59 let e = r.exec(q);
60 while (e) {
61 hashParams[d(e[1])] = d(e[2]);
62 e = r.exec(q);
63 }
64
65 return hashParams;
66}
67
68const fallbackCopyTextToClipboard = (text: any) => {
69 const textArea = document.createElement('textarea');

Callers

nothing calls this directly

Calls 1

dFunction · 0.85

Tested by

no test coverage detected