Fix strings not being displayed fully because they featured 'non-word' characters.

This commit is contained in:
Mike Auty
2018-05-08 23:59:59 +01:00
parent b9fbf272d1
commit 577b6c4b5b
+1 -1
View File
@@ -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