Skip to main content

@webda/coreReadme | API


Class: RegExpValidator

A utility class that takes a array of string or string transformed into regex that includes a start line and end line

Extended by

Constructors

new RegExpValidator(info)

new RegExpValidator(info): RegExpValidator

Parameters

info: string | string[]

Returns

RegExpValidator

Source

packages/core/src/services/service.ts:187

Properties

validators

protected validators: RegExp[]

Source

packages/core/src/services/service.ts:186

Methods

validate()

validate(value): boolean

Parameters

value: string

Returns

boolean

Source

packages/core/src/services/service.ts:202


getRegExp()

static getRegExp(reg): RegExp

Parameters

reg: string

Returns

RegExp

Source

packages/core/src/services/service.ts:192