skwasjer / IbanNet

C# .NET IBAN validator, parser, builder and generator
Apache License 2.0
119 stars 31 forks source link

feat: Add overload for `PatternToken` to represent a explicit string value. #129

Closed skwasjer closed 1 year ago

skwasjer commented 1 year ago

This refactoring enables support for tokens that represent an explicit value instead of a character of an ASCII category. This allows the country code to be a pattern token itself.

codecov[bot] commented 1 year ago

Codecov Report

Merging #129 (3e1af82) into main (73008ec) will increase coverage by 0.58%. The diff coverage is 92.75%.

Impacted Files Coverage Δ
src/IbanNet/Registry/Patterns/PatternToken.cs 94.59% <85.71%> (+0.65%) :arrow_up:
src/IbanNet/Registry/Patterns/PatternTokenizer.cs 90.24% <90.00%> (-0.67%) :arrow_down:
src/IbanNet/Registry/Patterns/PatternValidator.cs 84.74% <100.00%> (ø)
src/IbanNet/Registry/Swift/SwiftPattern.cs 82.60% <100.00%> (+4.83%) :arrow_up:
...rc/IbanNet/Registry/Swift/SwiftPatternTokenizer.cs 96.77% <100.00%> (ø)
...IbanNet/Registry/Wikipedia/IbanWikipediaPattern.cs 100.00% <100.00%> (+60.00%) :arrow_up:
src/IbanNet/Registry/Wikipedia/WikipediaPattern.cs 80.00% <100.00%> (+2.22%) :arrow_up:
...et/Registry/Wikipedia/WikipediaPatternTokenizer.cs 100.00% <100.00%> (ø)