Skip to content

Commit 9afe010

Browse files
committed
Remove erroneous validation
@last_4_digits was replaced with a getter/setter that works with @last_digits, and which already has validation.
1 parent 2ceccbe commit 9afe010

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/minfraud/components/credit_card.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def validate
116116
validate_telephone_country_code('bank_phone_country_code', @bank_phone_country_code)
117117
validate_regex('issuer_id_number', /\A(?:[0-9]{6}|[0-9]{8})\z/, @issuer_id_number)
118118
validate_regex('last_digits', /\A(?:[0-9]{2}|[0-9]{4})\z/, @last_digits)
119-
validate_regex('last_4_digits', /\A(?:[0-9]{2}|[0-9]{4})\z/, @last_4_digits)
120119
validate_string('bank_name', 255, @bank_name)
121120
validate_string('bank_phone_number', 255, @bank_phone_number)
122121
validate_string('avs_result', 1, @avs_result)

0 commit comments

Comments
 (0)