From 8022a0518bf66245b8bd04d985aeecfeca548bc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82uski?= Date: Thu, 2 Dec 2021 21:45:21 +0100 Subject: [PATCH] update management permission regex --- src/manifest-input/manifest-parser/permissions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manifest-input/manifest-parser/permissions.ts b/src/manifest-input/manifest-parser/permissions.ts index f41ac9d..650299a 100644 --- a/src/manifest-input/manifest-parser/permissions.ts +++ b/src/manifest-input/manifest-parser/permissions.ts @@ -64,7 +64,7 @@ export const idle = (s: string) => export const idltest = (s: string) => /((chromep?)|(browser))[\s\n]*\.[\s\n]*idltest/.test(s); export const management = (s: string) => - /((chromep?)|(browser))[\s\n]*\.[\s\n]*management/.test(s); + /((chromep?)|(browser))[\s\n]*\.[\s\n]*management(?!\s\n*\.(getSelf|uninstallSelf|getPermissionWarningsByManifest))/.test(s); export const nativeMessaging = (s: string) => /((chromep?)|(browser))[\s\n]*\.[\s\n]*nativeMessaging/.test(s); export const notifications = (s: string) =>