-
Notifications
You must be signed in to change notification settings - Fork 7
Add utility function isValidSwissIbanNumber #79
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
Add utility function isValidSwissIbanNumber #79
Conversation
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new utility function isValidSwissIbanNumber to validate Swiss IBAN numbers according to the IBAN standard. The implementation includes input sanitization, format validation, and checksum verification using the mod-97 algorithm.
- Implements Swiss IBAN validation with proper format checking and checksum calculation
- Adds comprehensive test cases covering various valid and invalid IBAN scenarios
- Updates changelog to document the new utility function
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/lib/string.ts | Adds the isValidSwissIbanNumber function with IBAN validation logic |
| src/lib/string.spec.ts | Adds test cases for the new IBAN validation function |
| CHANGELOG.md | Documents the addition of the new utility function |
Comments suppressed due to low confidence (1)
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Add utility function isValidSwissIbanNumber for issue #77