MCPcopy Index your code
hub / github.com/ulid/javascript / fixULIDBase32

Function fixULIDBase32

source/crockford.ts:58–60  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

56 * @returns The cleaned up ULID
57 */
58export function fixULIDBase32(id: string): string {
59 return id.replace(/i/gi, "1").replace(/l/gi, "1").replace(/o/gi, "0").replace(/-/g, "");
60}
61
62export function incrementBase32(str: string): string {
63 let done: string | undefined = undefined,

Callers 1

crockford.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected