PakDataKit - v2.2.0
    Preparing search index...

    Function normalizePhoneDigits

    • Normalizes a phone string to digits with country code (no leading plus).

      Accepts local (0300…), international (+92300…, 0092300…), short (300…) and the common +92 (0) 300… / +920300… forms, with spaces, dashes, dots, slashes or parentheses, and Urdu or Arabic-Indic digits.

      Returns null when the input is not a Pakistani mobile number on an allocated 03XX prefix.

      Parameters

      • phone: string

      Returns string | null