You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #49 from shinji-san/release-v1.1.0
Release v1.1.0
Added:
- Add `ConvertAlphaNumericToNumeric` method to convert a string containing alphanumeric characters to a string containing only numeric characters (use case: converting an ISIN to a numeric string for Luhn validation).
Resolves: #49
Copy file name to clipboardexpand all lines: CHANGELOG.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
-
## [Unreleased]
7
+
## [1.1.0] - 2024-03-30
8
8
### Added
9
9
- Add `ConvertAlphaNumericToNumeric` method to convert a string containing alphanumeric characters to a string containing only numeric characters (use case: converting an ISIN to a numeric string for Luhn validation).
10
10
11
-
## [1.0.1] - 2024-02-19
11
+
## [1.0.1] - 2024-03-19
12
12
### Fixed
13
13
- Fixed a bug in `Luhn.ComputeLuhnNumber` and `Luhn.ComputeLuhnCheckDigit` methods that sometimes returned an incorrect result.
14
14
@@ -46,6 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
The `LuhnDotNet` library can be used to compute the check digit of a credit card number. The check digit is the last digit of the credit card number, which is used to validate the number according to the Luhn algorithm.
Console.WriteLine($"The check digit for credit card number {creditCardNumberWithoutCheckDigit} is: {checkDigit}");
283
+
}
284
+
}
285
+
}
286
+
```
287
+
288
+
## Validate credit card number with LuhnDotNet
289
+
The `LuhnDotNet` library can be used to validate a credit card number according to the Luhn algorithm. The `IsValid` method returns `true` if the credit card number is valid, and `false` otherwise.
Console.WriteLine($"The credit card number {creditCardNumber} is valid: {isValid}");
305
+
}
306
+
}
307
+
}
308
+
```
309
+
266
310
# CLI building instructions
267
311
For the following instructions, please make sure that you are connected to the internet. If necessary, NuGet will try to restore the [xUnit](https://xunit.net/) packages.
268
312
## Using dotnet to build for .NET 6, .NET 7, .NET 8 and .NET FX 4.x
@@ -272,30 +316,36 @@ Use one of the following solutions with `dotnet` to build [LuhnDotNet](#luhndotn
0 commit comments