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.
This commit is contained in:
Mike Auty
2021-10-13 15:00:27 +01:00
parent daef7df46f
commit 5f3e519cae
@@ -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)