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