(value: string)
| 266 | .replace(/^-+|-+$/g, ""); |
| 267 | |
| 268 | const shortStableHash = (value: string): string => { |
| 269 | let hash = 0x811c9dc5; |
| 270 | for (let i = 0; i < value.length; i += 1) { |
| 271 | hash ^= value.charCodeAt(i); |
| 272 | hash = Math.imul(hash, 0x01000193); |
| 273 | } |
| 274 | return (hash >>> 0).toString(36); |
| 275 | }; |
| 276 | |
| 277 | const dcrClientSlug = ( |
| 278 | issuer: string | null, |
no test coverage detected