(value: string)
| 313 | .replace(/^-+|-+$/g, ""); |
| 314 | |
| 315 | const shortStableHash = (value: string): string => { |
| 316 | let hash = 0x811c9dc5; |
| 317 | for (let i = 0; i < value.length; i += 1) { |
| 318 | hash ^= value.charCodeAt(i); |
| 319 | hash = Math.imul(hash, 0x01000193); |
| 320 | } |
| 321 | return (hash >>> 0).toString(36); |
| 322 | }; |
| 323 | |
| 324 | const dcrClientSlug = ( |
| 325 | issuer: string | null, |
no test coverage detected