(value: string)
| 441 | .replace(/^-+|-+$/g, ""); |
| 442 | |
| 443 | const shortStableHash = (value: string): string => { |
| 444 | let hash = 0x811c9dc5; |
| 445 | for (let i = 0; i < value.length; i += 1) { |
| 446 | hash ^= value.charCodeAt(i); |
| 447 | hash = Math.imul(hash, 0x01000193); |
| 448 | } |
| 449 | return (hash >>> 0).toString(36); |
| 450 | }; |
| 451 | |
| 452 | const dcrClientSlug = ( |
| 453 | issuer: string | null, |
no test coverage detected