@maschinenlesbar.org/openka-cli
    Preparing search index...

    Function referenceSlug

    • The part of a reference that goes into a record id.

      The period is not taken from here: makeRecordId is given the record's legislative_period, which is authoritative, while the printed reference may pad it (08/980 under period 8). Changing this changes every record's identity.

      Parameters

      • reference: string

      Returns string