Merge pull request #1982 from Kathent/fix-deny-pattern
fix: more accurate deny pattern for disk wiping
This commit is contained in:
commit
ffa65b53ed
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ var (
|
|||
regexp.MustCompile(`\brmdir\s+/s\b`),
|
||||
// Match disk wiping commands (must be followed by space/args)
|
||||
regexp.MustCompile(
|
||||
`\b(format|mkfs|diskpart)\b\s`,
|
||||
`(^|[^-\w])\b(format|mkfs|diskpart)\b\s`,
|
||||
),
|
||||
regexp.MustCompile(`\bdd\s+if=`),
|
||||
// Block writes to block devices (all common naming schemes).
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue