Validate International Securities Identification Number: Difference between revisions

Content added Content deleted
(added RPL)
Line 2,115: Line 2,115:


val .isintest = f(.s) {
val .isintest = f(.s) {
matching(re/^[A-Z][A-Z][0-9A-Z]{9}[0-9]$/, .s) and
.s -> re/^[A-Z][A-Z][0-9A-Z]{9}[0-9]$/ and
.luhntest(join s2n .s)
.luhntest(join s2n .s)
}
}