Skip to content

Add ISO-15924 validation #2214

@xDivisionByZerox

Description

@xDivisionByZerox

Description

Hello, I'm a core member of the @faker-js/faker library.
We already use many of your validation methods to verify the integrity of our generated fake values.

For our newest addition, we want to verify codes for the representation of the names of scripts. Those are standardized by ISO-15924.

Suggested Validation

Validator name: isISO15924(str)
Validator Description: Check whether or not the string is a valid 4 character, ISO-15924 script code.

Additional Information

I'm willing to open a PR that integrate this feature if it get's approved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions