Skip to main content
Version: Latest (0.60.x)

[F] getPatternData

function getPatternData(program, target): PatternData | undefined

Gets the associated pattern data, including the pattern regular expression and optional validation message, if any has been set.

Parameters

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

Returns

PatternData | undefined

the pattern data, if any was set