Skip to content

Commit

Permalink
fix: card number space bug is fixed (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
utpal-barman authored Aug 4, 2023
1 parent 0988958 commit 61b7282
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## [1.0.4] 🛠️

### Fixed

- 📝 Card numbers with space bug is fixed

## [1.0.3] 🛠️

### Fixed
Expand Down
1 change: 1 addition & 0 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@
files = (
);
inputPaths = (
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
);
name = "Thin Binary";
outputPaths = (
Expand Down
2 changes: 1 addition & 1 deletion lib/src/u_credit_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class CreditCardUi extends StatelessWidget {
@override
Widget build(BuildContext context) {
final cardNumberMasked = CreditCardHelper.maskCreditCardNumber(
cardNumber,
cardNumber.replaceAll(' ', ''),
);

final validFromMasked = validFrom == null
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: u_credit_card
description: uCreditCard - Easy to use beautiful Card UI Flutter Package.
version: 1.0.3
version: 1.0.4
homepage: 'https://github.com/utpal-barman/u-credit-card-flutter'

environment:
Expand Down

0 comments on commit 61b7282

Please sign in to comment.