dist/index.esm.js
function getPathVarMatches(pathPiece) {
    var matches = pathPiece.match(/\{([a-z]+)\}/gi);
    if (!matches)
        return [];
    return matches.map(function (key) { return trimAccolades(key); });
}
function getPathVarMatches(pathPiece) {
    var matches = pathPiece.match(/\{([a-z]+)\}/gi);
    if (!matches)
        return [];
    return matches.map(function (key) { return trimAccolades(key); });
}
Get the matches of path variables: eg. return ['groupId'] if pathPiece is '{groupId}'

@export
@param {string} pathPiece eg. 'groups' or '{groupId}'
@returns {string[]} returns ['groupId'] in case of '{groupId}'