[F] getPattern
function getPattern(program, target): string | undefined;Gets the pattern regular expression associated with a given type, if one has been set.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
program | Program | the Program containing the target Type |
target | Type | the type to get the pattern for |
Returns
Section titled “Returns”string | undefined
the pattern string, if one was set
getPatternData