diff --git a/spf.py b/spf.py index a3f468e..8c8b907 100755 --- a/spf.py +++ b/spf.py @@ -111,7 +111,7 @@ class SPFInterpreter(lark.visitors.Interpreter): def list_get(self, el): (left, right) = self.visit_children(el) - return left[right] + return left[right-1] def expression(self, el):