1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

add additional schema checks

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2020-12-11 15:33:46 -05:00
parent c0ef478e20
commit 3259e22d88

View File

@ -194,7 +194,7 @@ export class LensProtocolRouter extends Singleton {
this.extentionRoutes.set(id, new Map()); 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"); throw new TypeError("Invalid url path schema");
} }