-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Bech32 and Bech32m Bitcoin Address Validation in Crypto Rec…
…ognizer and expand tests (#1307) * feat: Support 'M' prefix in SG_NRIC_FIN Recognizer and expand tests - Updated SG_NRIC_FIN Recognizer to include 'M' prefix for validating NRIC numbers issued to foreigners from 2022 onwards. - Added new test cases to ensure comprehensive coverage and validation accuracy for all supported NRIC prefixes (S, T, F, G, M). * test: Add NRIC/FIN recognition test with surrounding text - Introduced a new test case to validate the recognition of valid NRIC/FIN numbers when embedded within a sentence * docs: Update FIN number pattern to include 'M' * feat: Add Bech32 and Bech32m address validation support for Bitcoin - Extended the CryptoRecognizer with the capability to validate Bech32 and Bech32m Bitcoin addresses - Added new test cases have been added to cover Bech32 and Bech32m address validation --------- Co-authored-by: Omri Mendels <[email protected]>
- Loading branch information
Showing
2 changed files
with
108 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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