nationid - v0.6.0
    Preparing search index...

    Function cprMod11Legacy

    • Legacy mod-11 check (weights [4,3,2,7,6,5,4,3,2,1], sum mod 11 == 0).

      Returns true iff the CPR satisfies the pre-2007 modulus constraint. Useful for callers that want to flag pre-2007 numbers; not used by validate().

      Parameters

      • input: string

      Returns boolean