add additional schema checks

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2020-12-11 15:33:46 -05:00
1 parent c0ef478e20
commit 3259e22d88
1 file changed
+1 -1
+1 -1
View File
@@ -194,7 +194,7 @@ export class LensProtocolRouter extends Singleton {
this.extentionRoutes.set(id, new Map());
}
if (urlSchema.includes(`:${EXTENSION_NAME_MATCH}`)) {
if (urlSchema.includes(`:${EXTENSION_NAME_MATCH}`) || urlSchema.includes(`:${EXTENSION_PUBLISHER_MATCH}`)) {
throw new TypeError("Invalid url path schema");
}