Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve IBAN recognition on device #782

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

igor-gini
Copy link
Contributor

PP-106

@igor-gini igor-gini self-assigned this Feb 21, 2025
@obaidgini obaidgini self-requested a review February 21, 2025 09:45
number = number.replacingOccurrences(of: ",", with: "")
number = number.replacingOccurrences(of: ".", with: "")
matches = extractIBANMatches(from: String(string.prefix(2)) + number)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @igor-gini , Everything looks good to me, just a small suggestion,
We observed in android that sometimes
8 is recognized as B,
7 is recognized as Z,
I think it would be good if you can add these cases as well, If you did not saw any pattern like this in IOS then it is fine as well.
Just for your information here is the android PR link if you want to have a look :)
gini/gini-mobile-android#645

Copy link
Contributor

@obaidgini obaidgini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @igor-gini, Everything looks good, I have added a small suggestion, If you think it will not add any value according to your library, please let me know I will approve the PR. Thank you :)

@igor-gini igor-gini force-pushed the PP-106-Improve-IBAN-recognition-on-device branch from 5bdfece to 3d64b82 Compare February 24, 2025 09:34
@obaidgini obaidgini self-requested a review February 24, 2025 10:11
Copy link
Contributor

@obaidgini obaidgini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👌 thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants