Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno_class_validator/src/index.ts>Matches

Decorator-based property validation for classes.
Latest
function Matches
import { Matches } from "https://deno.land/x/deno_class_validator@v1.0.0/src/index.ts";

Checks if string matches the pattern. Either matches('foo', /foo/i) If given value is not a string, then it returns false.

Parameters

pattern: RegExp
optional
validationOptions: ValidationOptions

Returns

PropertyDecorator

Parameters

pattern: string
optional
modifiers: string
optional
validationOptions: ValidationOptions

Returns

PropertyDecorator