From 53cf2c8b28c75160494784f12d574df24f996159 Mon Sep 17 00:00:00 2001 From: GRINISH NEPAL Date: Mon, 12 Feb 2024 11:28:59 -0700 Subject: [PATCH] fix: the extension regex was not reading the dot --- pkg/scan/const.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/scan/const.go b/pkg/scan/const.go index 537123d..a942b55 100755 --- a/pkg/scan/const.go +++ b/pkg/scan/const.go @@ -17,12 +17,12 @@ package scan const ( - ruleSuffix string = ".json" - entropyThreshold float64 = 4.7 - compressRegex string = ".(war|jar|zip|ear)$" - convertRegex string = ".(docx|odt|pdf|rtf)$" - tempRegex string = `(?:ebgit|ebzip|ebconv)\d+[/\\](.+$)` - maskCharacter string = "*" - overlapLength int = 25 - infoLevelSeverity string = "info" + ruleSuffix string = ".json" + entropyThreshold float64 = 4.7 + compressRegex string = "\\.(war|jar|zip|ear)$" + convertRegex string = "\\.(docx|odt|pdf|rtf)$" + tempRegex string = `(?:ebgit|ebzip|ebconv)\d+[/\\](.+$)` + maskCharacter string = "*" + overlapLength int = 25 + infoLevelSeverity string = "info" )