From c7e3551827f47c7498470963f9549f9626f40ca8 Mon Sep 17 00:00:00 2001 From: Fung Lam Date: Mon, 12 Apr 2021 10:14:40 +0800 Subject: [PATCH 1/2] Update README.md --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0e62899..cdda255 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,6 @@ Step 2. Add the dependency } ### How to use - try { - HkidValidator.calcCheckDigit("A123456") //calculate the check digit in ( ) - } catch (e : IllegalArgumentException){ - // input is not in a valid format - } + + HkidValidator.isValid("A123456",'3') // true, valid + HkidValidator.isValid("A123456",'2') // false, invalid From e67fb3d9603753a6d7bd1ae9a7a6b52e4d7a262c Mon Sep 17 00:00:00 2001 From: Fung Lam Date: Mon, 12 Apr 2021 10:49:01 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cdda255..ce1049a 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Add it in your root build.gradle at the end of repositories: Step 2. Add the dependency dependencies { - implementation 'com.github.seventhmoon:hkid-validator:1.0.0' + implementation 'com.github.seventhmoon:hkid-validator:1.0.1' } ### How to use