From 2823ea226e2715e3d4f9c5edbc4f6a95bbadf450 Mon Sep 17 00:00:00 2001 From: Prince Chaddha Date: Wed, 28 Jun 2023 10:44:19 +0530 Subject: [PATCH] Update tar-path-overwrite.yaml --- file/nodejs/tar-path-overwrite.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/file/nodejs/tar-path-overwrite.yaml b/file/nodejs/tar-path-overwrite.yaml index 6d4d2f1f67..241491c97c 100644 --- a/file/nodejs/tar-path-overwrite.yaml +++ b/file/nodejs/tar-path-overwrite.yaml @@ -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