nationid - v2.2.1
    Preparing search index...

    Function normalize

    • Normalize a Portuguese (PT) document by stripping separators and casing.

      Parameters

      • code: "PT_NIF" | "PT_CC" | "PT_PASAPORTE" | ShortCode

        PT document type or short alias.

      • input: string

        Raw document string.

      Returns string

      Storage-friendly normalized representation.