Address CodeQL

This commit is contained in:
Michael Shamoon
2022-12-08 09:31:00 -08:00
parent aa11ecbb84
commit 104c704438
2 changed files with 1 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ export class PermissionsSelectComponent
set inheritedPermissions(inherited: string[]) {
// remove <app_label>. from permission strings
this._inheritedPermissions = inherited?.length
? inherited.map((p) => p.replace(/.+\./, ''))
? inherited.map((p) => p.replace(/^\w+\./g, ''))
: []
}