format

fun format(value: String): String(source)

Formats a VPA to canonical form: lowercase, no separators.

Applies the same normalisation as validate before formatting. NPCI canonical form for VPAs is lowercase — e.g. "user@ybl".

This method is idempotent: format(format(x)) == format(x).

Return

Canonical lowercase VPA string.

Parameters

value

Raw VPA string.

Throws

if value is not a valid VPA. The exception message includes the (truncated) input for diagnostics.

Samples

check(VPA.format("User@OkAxis") == "user@okaxis")