mirror of
https://github.com/github/codeql.git
synced 2026-02-19 08:23:45 +01:00
Apply suggestions from code review
Co-authored-by: Arthur Baars <aibaars@github.com>
This commit is contained in:
@@ -52,8 +52,8 @@ class PermissivePermissionsExpr extends Expr {
|
||||
(acc = access(world_permission(perm)) or acc = access(group_permission(perm)))
|
||||
)
|
||||
or
|
||||
// adding/setting read or write permissions for all/group/owner
|
||||
this.(StringLiteral).getValueText().regexpMatch(".*[ago][^-=+]*[+=]*[xXst]*[rw].*")
|
||||
// adding/setting read or write permissions for all/group/other
|
||||
this.(StringLiteral).getValueText().regexpMatch(".*[ago][^-=+]*[+=][xXst]*[rw].*")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user