Skip to content

encodeSegment

function encodeSegment(segment): string;

Defined in: src/storage/keys.ts:18

Escape a free-form key segment: encodeURIComponent, plus ~ → %7E (~ is the separator of sortableLeaf).

Parameter Type
segment string

string