Skip to content

[F] getPattern

function getPattern(program, target): undefined | string

Gets the pattern regular expression associated with a given type, if one has been set.

Parameters

ParameterTypeDescription
programProgramthe Program containing the target Type
targetTypethe type to get the pattern for

Returns

undefined | string

the pattern string, if one was set

See

getPatternData