The name of the parameter
Optional
valueType: string | RegExpThe type of the value
Optional
options: { Options for the parameter
Optional
global?: booleanWhether to match globally
Optional
optional?: booleanWhether the parameter is optional
A RegExp matching a parameter
Matching a parameter with a URL value
const m1 = QuotedParameter("url", HTTPURL());
const t1 = "{{url=\"https://www.google.com\"}}";
expect(t1.match(m1)).toBeTruthy();
Generated using TypeDoc
Matches a parameter in the form name="Value"