toUnmaskedIndex

fun toUnmaskedIndex(masked: String, pattern: String, caret: Int): Int(source)

Converts a caret position in the masked string to an index in the raw string.

Mirrors toUnmaskedIndex from mask-input.tsx.