From 76ab642b6fd5c4594e3a0e8aba2028f5310379ae Mon Sep 17 00:00:00 2001 From: Konstantin Serov Date: Wed, 19 Jul 2023 12:44:17 +0700 Subject: [PATCH] Luhn algo --- CHANGELOG.md | 2 ++ example/pubspec.lock | 2 +- lib/utils/luhn_algo.dart | 2 +- pubspec.yaml | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32cb39f..23ef150 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## [2.11.5] +Added Luhn algorithm to validate card numbers ## [2.11.4] Fixed https://github.com/caseyryan/flutter_multi_formatter/issues/131 Added new card system https://github.com/caseyryan/flutter_multi_formatter/issues/109 diff --git a/example/pubspec.lock b/example/pubspec.lock index 9f22d42..e168bb8 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -89,7 +89,7 @@ packages: path: ".." relative: true source: path - version: "2.11.4" + version: "2.11.5" flutter_test: dependency: "direct dev" description: flutter diff --git a/lib/utils/luhn_algo.dart b/lib/utils/luhn_algo.dart index eb98afe..347a483 100644 --- a/lib/utils/luhn_algo.dart +++ b/lib/utils/luhn_algo.dart @@ -1,4 +1,4 @@ -/// My implementation of th Luhn algorithm +/// My implementation of th Luhn algorithm /// https://en.wikipedia.org/wiki/Luhn_algorithm bool checkNumberByLuhn({ required String number, diff --git a/pubspec.yaml b/pubspec.yaml index 3839736..2742ce4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_multi_formatter description: A package of formatters for international phone numbers, credit / debit cards and a masked formatter -version: 2.11.4 +version: 2.11.5 homepage: https://github.com/caseyryan/flutter_multi_formatter environment: