Do not initialize Regex match

It is not used until it has a value.
This commit is contained in:
Ana María Martínez Gómez
2020-07-15 23:02:06 +02:00
parent 67cfb3866c
commit 80ba19a466

View File

@@ -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():