Update tar-path-overwrite.yaml

patch-1
Prince Chaddha 2023-06-28 10:44:19 +05:30 committed by GitHub
parent 9a179323ff
commit 2823ea226e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -14,9 +14,8 @@ file:
matchers:
- type: regex
regex:
- "\\$X = require\\('tar-stream'\\)"
- "\\$EXTRACT\\.on\\('entry', function \\$FUNC\\(...\\) {"
- "\\$FS\\.createWriteStream\\(\\$FIL, ...\\)"
- "\\$FS\\.writeFile\\(\\$FIL, ...\\)"
- "\\$FS\\.writeFileSync\\(\\$FIL, ...\\)"
- "require\\('tar-stream'\\)"
- "[\\w\\W]+?\\.createWriteStream\\([\\w\\W]*?\\, [\\w\\W]*?\\)"
- "[\\w\\W]+?\\.writeFile\\([\\w\\W]*?\\, [\\w\\W]*?\\)"
- "[\\w\\W]+?\\.writeFileSync\\([\\w\\W]*?\\, [\\w\\W]*?\\)"
condition: or