Home > @websublime/schema > StringSchemaType > pattern
StringSchemaType.pattern() method
Test a reg expression
Signature:
pattern(regexp: RegExp, errorMessage?: string): this;
Parameters
Parameter | Type | Description |
---|---|---|
regexp | RegExp | Reg expression |
errorMessage | string | Error message |
Returns:
this