Skip to content

Check if value is a RegEx #408

@donaldpipowitch

Description

@donaldpipowitch

What is the correct way to check if a value is a RegEx? With an API like Joi.string(), Joi.object(), Joi.array() I thought something like Joi.regex() would be available, but this isn't the case. I couldn't find something in the docs about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew functionality or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions