commit | 4e5ce390399a77d47aa775e9eb7d04b5e8061483 | [log] [tgz] |
---|---|---|
author | Philip P. Moltmann <moltmann@google.com> | Tue Jul 11 09:14:47 2017 -0700 |
committer | Philip P. Moltmann <moltmann@google.com> | Tue Jul 11 09:19:31 2017 -0700 |
tree | d62998cb9845f2ceede6a52e330b7c0569023b34 | |
parent | 4c79c7b411cd40b378000de735886a59359ddb9e [diff] |
Implement Luhn checksum algo Ignore all non-digits. If only digits should be allowed, the developer can use a combination of SimpleRegexValidator and RequiredValidators. Bug: 62534917 Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases --test=android.autofillservice.cts.LuhnChecksumValidatorTest Change-Id: I4a7c68a236c3d4cb967f1bc61115df89e584a86d