Skip to content

Commit

Permalink
fix AUBECS max number of characters for bsb and account number (#888)
Browse files Browse the repository at this point in the history
  • Loading branch information
wooj-stripe authored Mar 23, 2022
1 parent 64fc674 commit 82810fd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import UIKit

let label = STPLocalizedString("BSB number", "Placeholder for AU BECS BSB number")
let disallowedCharacters: CharacterSet = .stp_invertedAsciiDigit
var maxLength: Int {
func maxLength(for text: String) -> Int {
return 6
}
let defaultValue: String?
Expand Down Expand Up @@ -56,7 +56,7 @@ import UIKit
let label = String.Localized.auBECSAccount
let disallowedCharacters: CharacterSet = .stp_invertedAsciiDigit
let numberOfDigitsRequired = 9
var maxLength: Int {
func maxLength(for text: String) -> Int {
return numberOfDigitsRequired
}
let defaultValue: String?
Expand Down

0 comments on commit 82810fd

Please sign in to comment.