(value: string)
| 491 | .replace(/^-+|-+$/g, ""); |
| 492 | |
| 493 | const shortStableHash = (value: string): string => { |
| 494 | let hash = 0x811c9dc5; |
| 495 | for (let i = 0; i < value.length; i += 1) { |
| 496 | hash ^= value.charCodeAt(i); |
| 497 | hash = Math.imul(hash, 0x01000193); |
| 498 | } |
| 499 | return (hash >>> 0).toString(36); |
| 500 | }; |
| 501 | |
| 502 | const dcrClientSlug = ( |
| 503 | issuer: string | null, |
no test coverage detected