Address CodeQL

This commit is contained in:
Michael Shamoon committed 2022-12-08 09:31:00 -08:00
1 parent 2ec695fba7
commit b99422da12
2 files changed
+1 -2

No files matched your search

@@ -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, ''))
: []
}