(value: string)
| 326 | .replace(/^-+|-+$/g, ""); |
| 327 | |
| 328 | const shortStableHash = (value: string): string => { |
| 329 | let hash = 0x811c9dc5; |
| 330 | for (let i = 0; i < value.length; i += 1) { |
| 331 | hash ^= value.charCodeAt(i); |
| 332 | hash = Math.imul(hash, 0x01000193); |
| 333 | } |
| 334 | return (hash >>> 0).toString(36); |
| 335 | }; |
| 336 | |
| 337 | const dcrClientSlug = ( |
| 338 | issuer: string | null, |
no test coverage detected