mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-10 19:57:39 +02:00
Fix strings not being displayed fully because they featured 'non-word' characters.
This commit is contained in:
@@ -49,7 +49,7 @@ class Strings(interfaces.plugins.PluginInterface):
|
||||
|
||||
def _parse_line(self, line: bytes) -> typing.Tuple[int, bytes]:
|
||||
"""Parses a single line from a strings file"""
|
||||
pattern = re.compile(rb"(?:\W*)([0-9]+)(?:\W*)(\w+)")
|
||||
pattern = re.compile(rb"(?:\W*)([0-9]+)(?:\W*)(\w[\w\W]+)")
|
||||
match = pattern.search(line)
|
||||
offset, string = match.group(1, 2)
|
||||
return int(offset), string
|
||||
|
||||
Reference in New Issue
Block a user