Skip to content

How to properly detect domains? #1965

@Gr8z

Description

@Gr8z

How would one use Joi to validate social media URLs?

I tried this but had no luck:

const devSchema = Joi.object().keys({
  instagram: Joi.string().uri({
    scheme: "instagram"
  })
});

When I try {instagram: "http://instagram.com/user"}:

"instagram" must be a valid uri with a scheme matching the instagram pattern

Metadata

Metadata

Assignees

Labels

supportQuestions, discussions, and general support

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions