Extracts variable names from a URI template string.
This extraction function is limited in its ability to handle malformed template strings,
and it differs from how url-template handles such cases. However, JMAP defines that all
URI Templates MUST be level 1 compliant, so this function should work correctly in all
anticipated cases. It will, however, extract parameters from any valid template string
from levels 1 to 4.
Parameters
template: string
The URI template string from which to extract variables
Returns Set<string>
A Set of variable names extracted from the template
Extracts variable names from a URI template string.
This extraction function is limited in its ability to handle malformed template strings, and it differs from how
url-templatehandles such cases. However, JMAP defines that all URI Templates MUST be level 1 compliant, so this function should work correctly in all anticipated cases. It will, however, extract parameters from any valid template string from levels 1 to 4.