(value: string)
| 337 | .replace(/^-+|-+$/g, ""); |
| 338 | |
| 339 | const shortStableHash = (value: string): string => { |
| 340 | let hash = 0x811c9dc5; |
| 341 | for (let i = 0; i < value.length; i += 1) { |
| 342 | hash ^= value.charCodeAt(i); |
| 343 | hash = Math.imul(hash, 0x01000193); |
| 344 | } |
| 345 | return (hash >>> 0).toString(36); |
| 346 | }; |
| 347 | |
| 348 | const dcrClientSlug = ( |
| 349 | issuer: string | null, |
no test coverage detected