Add utility function isValidSwissIbanNumber#79
Merged
fwermelinger merged 12 commits intoneolution-ch:mainfrom Sep 3, 2025
Merged
Add utility function isValidSwissIbanNumber#79fwermelinger merged 12 commits intoneolution-ch:mainfrom
fwermelinger merged 12 commits intoneolution-ch:mainfrom
Conversation
commit: |
Contributor
There was a problem hiding this comment.
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>
neoscie
reviewed
Aug 27, 2025
drebrez
reviewed
Aug 27, 2025
drebrez
reviewed
Aug 27, 2025
drebrez
reviewed
Aug 27, 2025
drebrez
reviewed
Aug 28, 2025
drebrez
reviewed
Aug 28, 2025
drebrez
reviewed
Aug 28, 2025
drebrez
reviewed
Aug 28, 2025
drebrez
reviewed
Sep 1, 2025
drebrez
previously approved these changes
Sep 3, 2025
|
fwermelinger
approved these changes
Sep 3, 2025
drebrez
approved these changes
Sep 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add utility function isValidSwissIbanNumber for issue #77