diff --git a/lib/common/path.ts b/lib/common/path.ts index 52d47d6..97b4289 100644 --- a/lib/common/path.ts +++ b/lib/common/path.ts @@ -97,6 +97,7 @@ export default class Path { ) ++index; const s = pattern.slice(j, index).trim(); + if (!s) throw new Error("Invalid parameter path"); segments.push(s); }