[F] getPattern
function getPattern(program, target): undefined | string;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”undefined | string
the pattern string, if one was set
getPatternData