Skip to content

Commit

Permalink
feat(capture-sdk): Configure regex to handle short multiline IBANs
Browse files Browse the repository at this point in the history
PIA-4667
  • Loading branch information
abolfazlimahdi committed Oct 31, 2023
1 parent b7fd984 commit 86a7ba8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ object IBANKnowledge {
"""($countryCodesRegex) ?(\d ?\d) ?([-\p{Alnum} ]{11,50}\p{Alnum}|[\p{Alnum}]{11,30})\b""".toRegex()

val ibanInBlocksRegex =
"""\b($countryCodesRegex) ?\d{2}(\s{0,3}[a-zA-Z0-9]{4}){3,8}(\s{0,3}[a-zA-Z0-9]{1,4})\b""".toRegex()
"""\b($countryCodesRegex) ?\d{2}(\s{0,3}[a-zA-Z0-9]{4}){2,8}(\s{0,3}[a-zA-Z0-9]{1,4})\b""".toRegex()

val germanIBANRegex = """^DE\d{${countryIbanDictionary["DE"]?.minus(2)}}$""".toRegex()
}

0 comments on commit 86a7ba8

Please sign in to comment.