mirror of
https://github.com/mandiant/capa.git
synced 2026-01-11 04:33:54 -08:00
Do not initialize Regex match
It is not used until it has a value.
This commit is contained in:
@@ -99,7 +99,7 @@ class Regex(String):
|
||||
raise ValueError(
|
||||
"invalid regular expression: %s it should use Python syntax, try it at https://pythex.org" % value
|
||||
)
|
||||
self.match = ""
|
||||
self.match = None
|
||||
|
||||
def evaluate(self, ctx):
|
||||
for feature, locations in ctx.items():
|
||||
|
||||
Reference in New Issue
Block a user