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