From 5f3e519caec01777a60a286edc4ae1b4df0a73a1 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 13 Oct 2021 15:00:27 +0100 Subject: [PATCH] Core: Make the regex scanner default to DOTALL This will have no impact on the existing core use of the regex scanner, and therefore does not require a version bump. --- volatility3/framework/layers/scanners/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility3/framework/layers/scanners/__init__.py b/volatility3/framework/layers/scanners/__init__.py index a99e80b14..2c27c4fea 100644 --- a/volatility3/framework/layers/scanners/__init__.py +++ b/volatility3/framework/layers/scanners/__init__.py @@ -34,7 +34,7 @@ class RegExScanner(layers.ScannerInterface): _required_framework_version = (2, 0, 0) - def __init__(self, pattern: bytes, flags: int = 0) -> None: + def __init__(self, pattern: bytes, flags: int = re.DOTALL) -> None: super().__init__() self.regex = re.compile(pattern, flags)