Skip to content

Conversation

@Silwings-git
Copy link
Contributor

Add Validator for Unified Social Credit Code (USCC)

Description:

This PR introduces a new feature that enables the format validator to verify the correctness of the Unified Social Credit Code (USCC). The USCC is a crucial identifier for businesses in China, and ensuring its validity is essential for accurate data processing.

Changes:

Added a utility function to check the validity of a USCC, which is invoked by the format validator.
Implemented regex and checksum validation to ensure compliance with the official USCC standard.
Included unit tests to verify the correctness of the validation function.

Copy link
Member

@Folyd Folyd left a comment

Choose a reason for hiding this comment

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

@Folyd Folyd merged commit d38ffcf into aiscriptdev:main Mar 14, 2025
12 checks passed
@Silwings-git
Copy link
Contributor Author

Silwings-git commented Mar 14, 2025 via email

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