Reject param paths containing empty segments
This commit is contained in:
1 parent
41f3987db4
commit
e516d5338c
1 file changed
+1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user