(hash: string)
| 8 | |
| 9 | // Get the hash contents as a map. |
| 10 | export function parseHash(hash: string): Record<string, string> { |
| 11 | const retval: Record<string, string> = {}; |
| 12 | for (const pair of hash.replace("#", "").split("&")) { |
| 13 | const parts = pair.split("="); |
| 14 | retval[parts[0]] = parts[1]; |
| 15 | } |
| 16 | return retval; |
| 17 | } |
| 18 | |
| 19 | // Given the current hash and a record of string->strings, creates the new hash |
| 20 | export function createHash( |
no outgoing calls
no test coverage detected
searching dependent graphs…